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!