Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Because no one answered my question, I will do it myself.</p> <p>If you want to perform HLT (HTTP Live Stream) on Android 2.1 and higher you may use the vitamio library.</p> <p>Site at: (<a href="http://www.vitamio.org/" rel="noreferrer">http://www.vitamio.org/</a>).</p> <p>Here is code example: The main layout: </p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout android:id="@+id/LinearLayout01" android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android" android:paddingLeft="2px" android:paddingRight="2px" android:paddingTop="2px" android:paddingBottom="2px" android:layout_width="fill_parent" android:orientation="vertical"&gt; &lt;io.vov.vitamio.widget.VideoView android:layout_height="fill_parent" android:layout_width="fill_parent" android:id="@+id/VideoView"&gt; &lt;/io.vov.vitamio.widget.VideoView&gt; &lt;/LinearLayout&gt; </code></pre> <p>the Class:</p> <pre><code>import io.vov.vitamio.widget.MediaController; import io.vov.vitamio.widget.VideoView; import android.app.Activity; import android.content.Intent; import android.net.Uri; import android.os.Bundle; public class LiveStrimingTestActivity extends Activity{ VideoView videoView; private void test_2(){ String httpLiveUrl = "http://aj.lsops.net/live/aljazeer_en_high.sdp/playlist.m3u8"; videoView = (VideoView) findViewById(R.id.VideoView); videoView.setVideoURI(Uri.parse(httpLiveUrl)); MediaController mediaController = new MediaController(this); videoView.setMediaController(mediaController); videoView.requestFocus(); videoView.start(); } public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); test_2(); } } </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. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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