Failed to play (gst-player-error-quark, 0)

silver sxhsxhsxh66 at gmail.com
Fri Sep 9 15:22:20 UTC 2016


Hello,

I downloaded the android project from https://github.com/sdroege/gst-player
which I thaught is official enough. I didn't modify much code but just put
the uri string into the code. But I suffered the error: Failed to play
(gst-player-error-quark, 0) when I click the button "play". And others
didn't work neither (seek, pause) with the similar error.

The code I modified:

 String mediaUri = my_url_string; // I testes hls and rtsp but not work
 /*
Intent intent = getIntent();
android.net.Uri uri = intent.getData();
Log.i ("GStreamer", "Received URI: " + uri);
if (uri.getScheme().equals("content")) {
        android.database.Cursor cursor = getContentResolver().query(uri,
null, null, null, null);
        cursor.moveToFirst();
        mediaUri = "file://" +
cursor.getString(cursor.getColumnIndex(android.provider.MediaStore.Video.Media.DATA));
        cursor.close();
} else {
        mediaUri = uri.toString();
}
*/
player.setUri(mediaUri);

Could any one help me? Thank you!



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Failed-to-play-gst-player-error-quark-0-tp4679507.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list