Skip to content Skip to sidebar Skip to footer

Android Play Video From Url

When i play video from sdcard and raw folders the video is playing fine. But when i play video from remote server URL based it is not playing with VideoView, what could be the reso

Solution 1:

StringSrcPath="http://akamedia2.lsops.net/live/smil:cnbc_en.smil/playlist.m3u8";
        myVideoView = newVideoView(this);
        myVideoView.setVideoURI(Uri.parse(SrcPath));
        setContentView(myVideoView);
        myVideoView.setMediaController(newMediaController(this));

try this code.Hop its helpful to you.

Solution 2:

There are requirements on the protocol and the media file format that can be played by the MediaPlayer.

You need to refer to this chart, if you have not done so already: https://developer.android.com/guide/appendix/media-formats.html

Post a Comment for "Android Play Video From Url"