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

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Xinheng
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!
Reply | Threaded
Open this post in threaded view
|

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

Sebastian Dröge-3
On Fri, 2016-09-09 at 08:22 -0700, silver wrote:
> 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.

See https://bugzilla.gnome.org/show_bug.cgi?id=765311


For your specific problem though, that seems like some problem in the
lower layers of GStreamer below GstPlayer. Can you get a debug log?

For that, modify gstreamer_android-1.0.c.in (the .in!) and use
GST_LEVEL_LOG instead of GST_LEVEL_WARNING in that one place. Then
recompile everything. After that, adb logcat should be full of
information that would be useful to have.

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (949 bytes) Download Attachment