Repository navigation
Closed
Description
Hi,
Is it possible for the video files [mp4 h264] which are stored on owncloud, to be streamed directly, instead of them being downloaded and than played.
Using Android 4.4.4 Nexus 5 android app 1.5.8
PENDING TASKS:
- [GIT] Create branch in Android repo
- Use ExoPlayer library instead of VideoView because it was not possible to set headers for the authentication in < Lollipop devices.
- Create custom http data source for setting authentication headers (ExoPlayer doesn't implement it).
- Add full screen mode manually (ExoPlayer doesn't implement it).
- Important: This full screen mode is different to the one we previously had in the app. To go into full screen mode there is a new button in the playback controls and to exit the full screen mode, there is other button in the same place when full screen mode is enabled.
- Handle full screen modes. Two full screen modes to implement depending on the Android versions:
- < 4.4 KitKat: Full screen with a limitation, the least user interaction will cause navigation controls to reappear immediately. Once the navigation controls have reappeared, they are not hidden again, even if the user clicks in the view.
- >= 4.4 KitKat: App goes truly full screen using immersive mode, system bars are automatically hidden. User swipes to display the system bars.
- Options in menu. Remove options not necessary to stream
- If the file is being downloaded you can not stream it, and if the user taps over the file a progress bar will be shown
- If new version is available it should works as always. Update the current file while play it.
- Detect SSL certificate to choose between download/stream. In this case, when the certificate is untrusted, an specific error message is shown to the user and after that, the streaming view is closed and the download starts automatically.
- Improve full screen button behaviour, avoiding show it till the player is ready to reproduce the video
- Hide unnecessary options to stream in tablets [FIXED] @davigonz , @jesmrec
- Video playback state and autoplay are missed while rotating the screen in preview mode, not in full screen mode [FIXED] @davigonz @jesmrec
- Video playback state and autoplay are missed while changing from preview mode to full screen mode and vice versa [FIXED] @davigonz @jesmrec
- [QA] Design test plan @jesmrec
- [QA] Validate test plan [WIP] @jesmrec
- [GIT] Merge branch in Android repo
BUGS & IMPROVEMENTS
- Crash when session expires Video files to be stream instead of downloading and than playing #592 (comment) [FIXED] @davigonz , @jesmrec
- Root folder when video can not be streamed Video files to be stream instead of downloading and than playing #592 (comment) [FIXED] @davigonz , @jesmrec
- Error message with no connection Video files to be stream instead of downloading and than playing #592 (comment) Remains in black screen ¿regression?. Check Video files to be stream instead of downloading and than playing #592 (comment) [FIXED] @davigonz , @jesmrec
- Resume video after sharing Video files to be stream instead of downloading and than playing #592 (comment) @davigonz , @jesmrec [FIXED]
- Download and Streaming at the same time Video files to be stream instead of downloading and than playing #592 (comment) [FIXED] @davigonz , @jesmrec
- Options missed Video files to be stream instead of downloading and than playing #592 (comment) [FIXED] @davigonz , @jesmrec
- Unsupported video files make the app crash Video files to be stream instead of downloading and than playing #592 (comment) [FIXED] @davigonz , @jesmrec
- Error message in slow connection Video files to be stream instead of downloading and than playing #592 (comment) [FIXED] @davigonz , @jesmrec
- Removed video makes crash Video files to be stream instead of downloading and than playing #592 (comment) [FIXED] @davigonz , @jesmrec
- Videos in flv shows a different error message Video files to be stream instead of downloading and than playing #592 (comment) [FIXED] @davigonz , @jesmrec
- Error when session expires in full screen Video files to be stream instead of downloading and than playing #592 (comment) [FIXED] @davigonz , @jesmrec
- Error message after remove a video in server and switch to full screen mode Video files to be stream instead of downloading and than playing #592 (comment) [FIXED] @davigonz , @jesmrec
- Crash in devices with 4.0.0 and 4.0.3 Ice Cream Sandwich versions while starting the video previewing or streaming Video files to be stream instead of downloading and than playing #592 (comment) [FIXED] @davigonz , @jesmrec
- The controls of the video are not shown in htc one #859 [FIXED]
- Different error messages for unsupported video files Video files to be stream instead of downloading and than playing #592 (comment) [WON'T FIX]
- Expiration message is "not supported format" Video files to be stream instead of downloading and than playing #592 (comment) [WON`T FIX]
- Should not-playable videos be downloaded always? Video files to be stream instead of downloading and than playing #592 (comment) [FIXED] @davigonz @jesmrec
- Cancel button does not work Video files to be stream instead of downloading and than playing #592 (comment) [FIXED] @davigonz @jesmrec
- Crash after downloading in 4.0.3 Video files to be stream instead of downloading and than playing #592 (comment) [FIXED] @davigonz @jesmrec
- Crash in 4.0.3 while if orientation changes during download Video files to be stream instead of downloading and than playing #592 (comment) [FIXED] @davigonz @jesmrec
- Video is streamed in av. offline https://github.com/owncloud/android/issues/592#issuecomment-287718525[FIXED] @davigonz @jesmrec
- Error message in 302 redirections untrusted certificate Video files to be stream instead of downloading and than playing #592 (comment) [FIXED]
- New version is downloaded and streamed Video files to be stream instead of downloading and than playing #592 (comment) [WONT_FIX]
- Bad error message when forwarding video in expirated SAML session Video files to be stream instead of downloading and than playing #592 (comment) [READY_TO_TEST]
- Download error in notification bar when session expires Video files to be stream instead of downloading and than playing #592 (comment)
Activity
davivel commentedon Aug 28, 2014
Sure, that would be awesome.
Contributions are welcome!! :)
xylo commentedon Sep 30, 2015
What about an option "stream with" below the option "open with" in the context menu?
tobiasKaminsky commentedon Sep 30, 2015
@DeepDiver1975 Can you give us an hint, if and how streaming is possible via webdav?
supportreq commentedon Oct 21, 2015
@AndyScherzinger can we have this?? Its the need of the hour as most cloud solutions have streaming of videos, mp3 instead of downloading...
AndyScherzinger commentedon Oct 21, 2015
That is rather a question for @tobiasKaminsky, @DeepDiver1975 and other server side colleagues since I am rather a UI guy than a media streaming expert.
tobiasKaminsky commentedon Oct 21, 2015
owncloud/core#19958
So this is nearly a 10liner to create.
And then it will also work for audio :)
I will do it in the next time
AndyScherzinger commentedon Oct 21, 2015
Sounds awesome!!!
supportreq commentedon Oct 22, 2015
This would be awesome.. Can we not implement streaming inside the android app itself cause we already have a video and audio player.. This will be an awesome and a long due feature..
tobiasKaminsky commentedon Oct 22, 2015
No.
I tried it since 3 hours... The internal player is...awful.
I tried to play several downloaded files to just prove it is working before trying to stream them.
But none of the videos is being played.
So. I will just send the generated link via intent to all capable audio/video apps.
Supporting/enhancing the internal player is something, someone else can do :/
supportreq commentedon Oct 23, 2015
I think the native player requires videos having native codec like h264, mp3 for it to work..
I guess what we can do is if it opens in the native player great else an option to open in another app.. what say?
tobiasKaminsky commentedon Oct 23, 2015
Yes. I have convinced myself to give the internal player a second chance... ;)
The current state is:
The url has to include the password in cleartext, so a warning is necessary.
tobiasKaminsky commentedon Oct 24, 2015
@ALL: Can someone please provide me a video sample that is working with the internal player? I am using a Nexus 4.
65 remaining items
jesmrec commentedon Mar 17, 2017
Bug
Steps
Current behaviour
After downloading, the app crashes
Expected behaviour
The app not crashes.
Stack trace
03-17 10:24:26.099 2272-2272/com.owncloud.android W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0xa000f180)
03-17 10:24:26.099 2272-2272/com.owncloud.android E/AndroidRuntime: FATAL EXCEPTION: main
java.lang.RuntimeException: Error receiving broadcast Intent { act=com.owncloud.android.files.services.FileDownloaderDOWNLOAD_FINISH flg=0x10 (has extras) } in com.owncloud.android.ui.activity.FileDisplayActivity$DownloadBroadcastReceiver@a18a24e8
at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:737)
at android.os.Handler.handleCallback(Handler.java:605)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4424)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at com.owncloud.android.ui.preview.PreviewVideoFragment.onFileContentChanged(PreviewVideoFragment.java:587)
at com.owncloud.android.ui.fragment.FileFragment.onSyncEvent(FileFragment.java:117)
at com.owncloud.android.ui.activity.FileDisplayActivity$DownloadBroadcastReceiver.refreshSecondFragment(FileDisplayActivity.java:1249)
at com.owncloud.android.ui.activity.FileDisplayActivity$DownloadBroadcastReceiver.onReceive(FileDisplayActivity.java:1161)
at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:728)
at android.os.Handler.handleCallback(Handler.java:605)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4424)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
at dalvik.system.NativeStart.main(Native Method)
Tested with Nexus 5 v4.0.3 (simulator)
jesmrec commentedon Mar 17, 2017
Bug
Steps
Current behaviour
After downloading, the app crashes
Expected behaviour
The app not crashes.
Stack trace
03-17 12:32:36.983 23472-23472/com.owncloud.android E/AndroidRuntime: FATAL EXCEPTION: main
java.lang.NullPointerException
at com.owncloud.android.ui.preview.PreviewVideoFragment$1.onClick(PreviewVideoFragment.java:518)
at android.support.v7.app.AlertController$ButtonHandler.handleMessage(AlertController.java:157)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4424)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
at dalvik.system.NativeStart.main(Native Method)
jesmrec commentedon Mar 20, 2017
Bug
Steps (only iPad in landscape)
Current behaviour
video streams and downloads at the same time
Expected behaviour
video is donwloaded
CC @davigonz
jesmrec commentedon Mar 20, 2017
Bug
Current behaviour
Error message:
Response code: 302Expected behaviour
A clearer error message
CC @davigonz
jesmrec commentedon Mar 20, 2017
Bug
Current behaviour
File is downloaded and streamed
Expected behaviour
File is downloaded
Tested with Galaxy Note4 v6 and Galaxy Tab v5
davivel commentedon Mar 20, 2017
About error message in redirections, #592 (comment)
Straight redirections are followed, that was not the problem.
Crossed redirections are not allowed in streaming, that was resulting in the ugly error message. I updated it.
davivel commentedon Mar 20, 2017
About the bug of streaming instead of downloading (#592 (comment))
the behaviour is correct. The remote video is not being streamed, the local one is being played while the remote one is downloaded; this is consistent with the rest of the previews and the sync-on-click behaviour: the local copy of the file is shown while the remote one is downloaded. IMHO this is "won't fix".
jesmrec commentedon Mar 21, 2017
Bug
Current behaviour
Bad error message: EOF Exception
Expected behaviour
Appropiate error message
Tested with Galaxy Nexus v4.1.2
jesmrec commentedon Mar 21, 2017
Improvement
When a SAML session expires, the video starts to download and fails (notification bar). The error is not real, so the video does not have to download. The user sees an error that is the expected behaviour
davivel commentedon Mar 21, 2017
@jesmrec , bug #592 (comment) is ready to test.
About the improvement #592 (comment) , to improve this behaviour we would need to make several important changes. This will delay us. I would discourage it.
jesmrec commentedon Mar 21, 2017
All bugs fixed. Approved.
davivel commentedon Mar 21, 2017
DONE; will be released in version 2.4.0, still no release date.
davivel commentedon Mar 21, 2017
cc @michaelstingl