Android SDK - Media Player Video from URL

后端 未结 3 582
忘掉有多难
忘掉有多难 2020-12-15 08:19

I\'ve tried to find a simple tutorial which explains how to load a video from a URL into the android media player but unfortunately I couldn\'t find any!

I have trie

3条回答
  •  臣服心动
    2020-12-15 08:53

    I think you can find useful thinks Here.. about playing video from different sources.

    If your using Emulator , 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 .

    Hope this explanation works for you..

提交回复
热议问题