In my application, I need to give the user a preview in progressive download (video file).
To achieve this, I use a component VideoViewto display the contents of the downloaded video (.mp4, .3gpp).
The problem is that I cannot access the remote media through the protocol http://or rtsp://, therefore, I have to use VideoView.setVideoPathto play a local copy of the video at boot time.
Unfortunately, on Android devices that cannot use the StageFrightframework (therefore OpenCore, some Tegra2-baseddevices in my experience), VideoViewit cannot correctly handle progressive downloads: it can play only part of the video recognized during component initialization.
So, to be clear: if the user clicks βplayβ when only 5% of the video is uploaded, VideoView will show only 5% of the video, regardless of whether more video content has been downloaded.
In my experience, this problem does not affect devices that use infrastructure StageFright(for example, Nexus One 2.2, Nexus One 2.3.4).
Can someone point me to a possible solution? thanks in advance
source
share