Note that there are some explanatory texts on larger screens.

plurals
  1. POASUS padfone shows black screen when playing Http Live Streaming (m3u8) files using Android VideoView
    primarykey
    data
    text
    <p>When I try to play HLS m3u8 file (http://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8) on ASUS padfone (http://www.asus.com/Mobile/PadFone/), it shows a black screen with no video nor audio. There is no error report in logcat.</p> <p>The Operating System installed on ASUS padfone is Android 4.0.3.</p> <p>The code I'm using can be run perfectly on other Android phones like Sansumg Galaxy S2. Is ASUS padfone missing HLS decoder for decoding the m3u8 streaming ? Other files like 3gp, mp4 works fine. Any suggestions would be appreciated!</p> <p>Code:</p> <pre><code>package com.videoview; import android.app.Activity; import android.net.Uri; import android.os.Bundle; import android.widget.MediaController; import android.widget.VideoView; public class videoview extends Activity { /** * TODO: Set the path variable to a streaming video URL or a local media * file path. */ private String path = "http://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8"; // private String path = "http://www.pocketjourney.com/downloads/pj/video/famous.3gp"; private VideoView mVideoView; @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); try { setContentView(R.layout.videoview); mVideoView = (VideoView) findViewById(R.id.surface_view); // mVideoView.setVideoPath(path); mVideoView.setVideoURI(Uri.parse(path)); mVideoView.setMediaController(new MediaController(this)); mVideoView.requestFocus(); mVideoView.start(); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } } } </code></pre> <p>XML layout file:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" &gt; &lt;VideoView android:id="@+id/surface_view" android:layout_height="fill_parent" android:layout_width="fill_parent"/&gt; &lt;/LinearLayout&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload