question

Darth avatar image
Darth asked

FireTV - Dealing with Large MP4s

We are using MP4s and some of our available files are large (80MB), how can I tell FireTV to "Play on a certain downloaded percentage". It appears it is downloading the entire MP4 file before downloading, thus making our app almost unusable.
fire tv
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

DougM@Amazon avatar image
DougM@Amazon answered
Hello Darth, You may want to looks into implementing either a streaming server or preparing your media to work in progressive streaming with your Android app's MediaPlayer. You will want to make sure that any MP4 is actually prepared to use HTTP progressive download and/or RTSP, otherwise the index required to play your video will still be at the end of your media file. There are a couple of ways to do this, one is to if you are using ffmpeg to create the video, you can use the '-movflags +faststart' flags to set that up. Or you can use a program such as qtfaststart to add the hinting required for streaming/pseudo-streaming. http://stackoverflow.com/questions/23419351/ffmpeg-using-movflags-faststart For information about how Android handles MediaPlayer buffering updates, you can look at: http://developer.android.com/reference/android/media/MediaPlayer.OnBufferingUpdateListener.html and the MediaPlayer class: http://developer.android.com/reference/android/media/MediaPlayer.html For a project that can help prepare your existing MP4s for streaming with: https://github.com/danielgtaylor/qtfaststart For HLS or other streaming mechanisms, you will want to gain access to the OnStream VisualOn+ SDK, which you can get more information about by contacting us at : https://developer.amazon.com/help/contactus.html .
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.