How to display Video in the Android Emulator from Remote URL?

前端 未结 3 1083
花落未央
花落未央 2020-12-05 17:05

I am using the following code to display a video file in the android emulator,it works fine when the video file is stored in a SDcard.But when i give any URL of a video the

3条回答
  •  北荒
    北荒 (楼主)
    2020-12-05 17:32

    First, do not use the emulator for testing video playback. Its ability to handle video playback is very limited. Use an actual Android device.

    Second, always check LogCat (adb logcat, DDMS, or DDMS perspective in Eclipse) for warnings when you run into multimedia problems. OpenCORE -- the multimedia engine used by Android -- has a tendency to log error-level conditions as warnings.

    For example, your video file may not be set up for progressive download, which is required for HTTP streaming. On Linux, you can patch up MP4 videos for progressive download by installing MP4Box and running MP4Box -hint .

提交回复
热议问题