Note that there are some explanatory texts on larger screens.

plurals
  1. POHTTP streaming from VLC player to AVD using Android VideoView
    primarykey
    data
    text
    <p>I'm trying to streaming a 3gp video on android emulator (v. 2.3.3 - Eclipse IDE). I prepare a stream with VLC media player using HTTP on port 9090 without any transcoding. For testing streaming I open a new instance of VLC and connecting on my local ip (192.168.1.107:9090) I see the video without any problems. Now I try on Android using this code on onCreate(Bundle) method of my Activity class:</p> <pre class="lang-java prettyprint-override"><code>VideoView video = (VideoView) findViewById(R.id.video); String uri = "http://192.168.1.107:9090"; video.setVideoURI(Uri.parse(uri)); video.setMediaController(new MediaController(this)); video.requestFocus(); video.start(); </code></pre> <p>but when application starts, appears this message: "Impossible to reproduce the video". Here the logcat:</p> <pre><code>D/MediaPlayer(454): Couldn't open file on client side, trying server side E/MediaPlayer(454): error (1, -2147483648) E/MediaPlayer(454): Error (1,-2147483648) D/VideoView(454): Error: 1,-2147483648 </code></pre> <p>I've tried also with the URI 10.0.2.2:9090 with the same result and 127.0.0.1:9090 with the same message and the error range (1, -111)</p> <p>Note that the same video works fine if I play it on local:</p> <pre class="lang-java prettyprint-override"><code>String uri = "android.resource://" + getPackageName() + "/" + R.raw.myvideo; </code></pre> <p>I use <code>Windows 7 x64</code>.</p> <p>Edit: I've also tried to upload the video on the public folder of my Dropbox with the same error, but using the original <a href="http://daily3gp.com/vids/familyguy_has_own_orbit.3gp" rel="nofollow">link</a> it works! Is there a problem with my local network? What does it mean the error (1,x)?</p> <p>Edit2: I've started a XAMPP session on my local network and I've put the video on a folder. The ip address is something like this:</p> <pre><code>String uri = "http://192.168.1.107:8080/myfolder/myvideo.3gp"; </code></pre> <p>and it works, even if this is not properly streaming, but something like active download (as the example on the web in my first edit).</p>
    singulars
    1. This table or related slice is empty.
    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