ExoPlayer icon indicating copy to clipboard operation
ExoPlayer copied to clipboard

Seeking causes entire video to be downloaded

Open nfortenberry opened this issue 12 years ago • 1 comments

Occasionally, after selecting a new seek position, the entire video will be downloaded up until the selected position instead of actually seeking. This tends to happen more when the user seeks by dragging (vs tapping on the seekbar) or when setting a seek position at the beginning of a video.

This was only tested with MP4 videos. This issue is harder to reproduce on the demo application (although possible) since the MP4 files are smaller. I tested with a larger MP4 video and it is reproducible every time.

The video I tested with was added as follows:

new Sample("PBS Video", 
         "uid:misc:pbs",
         "http://myvideourl.com", 
         DemoUtil.TYPE_OTHER,
         false, 
         false)

I've created a video here: https://drive.google.com/file/d/0Bw5OJlsDz939enZZbW93LWY3dE0/view?usp=sharing

nfortenberry avatar Nov 10 '14 22:11 nfortenberry

There's not much we can do here, because ExoPlayer doesn't control the data fetching when Android's MediaExtractor is used. We'll be trying to support more formats directly in ExoPlayer (likely starting with MP4), which will allow us to fix this because the fetching of data will become our responsibility, but we don't need individual issues open to track this. Closing for now.

ojw28 avatar Dec 12 '14 17:12 ojw28