How can we play the .m3u8 file in Android 2.2 or Android 2.3?

How can we play a .m3u8 file (an m3u file that uses unicode) in Android 2.2 or 2.3? Can Android play files in this format?

+4
source share
3 answers

In these versions of Android, there is no built-in support for this format. You may be able to find a third-party JAR that can analyze it.

+2
source

I successfully made an m3u8 video partially played on the Android 2.3.3 emulator, the problem is that the http connection between the emulator and the server is weak, it quite often drops the network packet and gets "Could not find the serial number XXX in the new playlist" and SocketTimeoutException in a few seconds. I do not have a real device for testing, but someone said that this is a bug of the Emulator, and should be fine on the real device.

  public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); String httpLiveUrl = "httplive://your_media_file.m3u8"; setContentView(R.layout.media_player); videoView = (VideoView) findViewById(R.id.myVideoView); videoView.setVideoURI(Uri.parse(httpLiveUrl)); videoView.setMediaController(new MediaController(this)); videoView.requestFocus(); videoView.start(); } 
+1
source

According to here , this file type should be a playlist, a list of mp3 files. You should be able to upload a text file ( this may help) and display it in a list .

0
source

All Articles