Android videos play instead of downloading






















There is some line of code in comment in DoInBackground that I tried to achieve my goal but it says "cant play video". Anyone knows about solution? Create two background threads: download thread and streaming thread. In the streaming thread create ServerSocket and stream data that are just being downloaded.

With the help of Milos Fec 's answer i solved this issue. I had to create two thread one for downloading and another for streaming that downloaded content over a socketServer while taking care of synchronisation of data downloaded and data being played. I have put the whole code as a library on github check here. EDIT: This lib does not work with all the types of videos where video servers imposes restrictions over downloading by breaking video into chunks and so on I worked on this on the early days of my Android development to just learn syncing between local server and remote server.

There are a lot of room for improvements in this lib and I am not doing any because there are other options that fulfill the same requirement and I don't get enough time from my other stuff also. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Download video along with playing Ask Question.

Asked 5 years, 11 months ago. Active 1 year, 5 months ago. Viewed 10k times. Improve this question. Copy link. Hi, Is it possible for the video files [mp4 h] which are stored on owncloud, to be streamed directly, instead of them being downloaded and than played.

Using Android 4. 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. Once the navigation controls have reappeared, they are not hidden again, even if the user clicks in the view. 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. 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.

LukasReschke added the enhancement label Aug 22, Bugsbane mentioned this issue Aug 27, Sure, that would be awesome. Contributions are welcome!! Pictures being viewed are automatically being downloaded Upload Failed, no retry option What could be improved or added as a new feature to make Android client better?

What about an option "stream with" below the option "open with" in the context menu? Streaming API? Sounds awesome!!! Downloading files Wait — it can expose your password? How so? The wording could be improved to: Sending the link to another app can expose your password. Bug Steps In app, tap on a not downloaded file to stream it or on a already downloaded file to preview it. App tries to start the previewing. Current Behaviour App crash Expected behaviour Show an error message, and start the file download automatically.

Tested with Galaxy Nexus emulator with 4. For myself: check How can I stop-remove the autoplay feature. I tried changing the about:config mentioned about and the mp3 podcast is still playing when I open Firefox. What's causing this and how can I eliminate it? Search Support Search. Learn More. Any help would be appreciated? Hi Paul, Sometimes there is an issue with Xiaomi, Please reboots your phone and if the issue is the same.

I have had this issue when I installed and uninstalled antivirus on my PC. Sometimes videos not play on YouTube. Thanks for this information when I clear cache on my android Phone. Now videos are playing well! I had an issue with my memory card, all 3gp videos corrupt when I reset my android phone. This information helpful for me to fix this issue. I recently purchase a 64Gb SD card. I have some MP4 movies that I want on my phone. Show message unable to Play.

Any advice would be appreciated? Hi Jon, Please scan your SD through trusted antivirus software. Hello, I try to play a video on VLC media player, but every time I receive the same message: error media loading. Can you help me please? Hi Rian, there are several possibilities may be that video on different file format or corrupt. Many thanks. As you mentioned I tried to resetting the app preferences on our android phone to play my videos files.

I had an issue with my new Samsung Android phone YouTube videos not playing. I found your blog on search, thanks for helpful tips to fix my YouTube videos not playing problem.

Your email address will not be published. Time limit is exhausted. Recovers deleted files, photos, videos etc.



0コメント

  • 1000 / 1000