I am working on an Android application that should play video via HTTP on Android devices. Before we install a server to host video files, we just need to clarify a few things:
According to the developer’s documentation, Android supports .mp4 and .3gp container formats for video. If we use the H.263 audio video codec (video) - AAC LC (Audio) used for our media files, can we play the video by passing the URL to the MediaPlayer class?
I experimented a bit and passed the URL of one of the video files (.mp4) to the MediaPlayer class and received the following error:
PLAYER_INIT command completed with error or PVMFErrContentInvalidForProgressivePlayback information
In the documents, I found out that for progressive playback, the video index (for example, moov atom) should be at the beginning of the file.
Questions:
1. How to make our Android-ready videos?
2. What are the various considerations we need to make?
Please, help.
Thank.
source
share