Problem with Vorbis and Theora file on Android
doon
don-prog at mail.ru
Mon May 2 01:34:14 UTC 2016
Sebastian Dröge-3 wrote
> On Do, 2016-04-28 at 18:42 -0700, doon wrote:
>> Thanks, pipeline works with audioresample!
>> Now I try to display video on Android like on other platforms:
>> [...]
>> But this code doesn't works, after gst_video_overlay_set_window_handle()
>> function I get:
>> F libc : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x5e in tid
>> 3154
>> (gstglcontext)
>> *
>> So, I think I need to use (is it
>> right?), but how can I do this? And why I can display video by default
>> way
>> on other platforms(e.g. iOS) but not on Android?*
>
> It works exactly the same as on other platforms, except for the way how
> you get the window handle. How do you get the window handle?
>
> See this example code:
> https://cgit.freedesktop.org/~slomo/gst-sdk-tutorials/tree/gst-sdk/tutorials/android-tutorial-3/jni/tutorial-3.c#n270
> https://cgit.freedesktop.org/~slomo/gst-sdk-tutorials/tree/gst-sdk/tutorials/android-tutorial-3/src/com/gst_sdk_tutorials/tutorial_3/Tutorial3.java#n127
>
> --
> Sebastian Dröge, Centricular Ltd · http://www.centricular.com
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at .freedesktop
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
> signature.asc (968 bytes)
> <http://gstreamer-devel.966125.n4.nabble.com/attachment/4677222/0/signature.asc>
This string describes how I get a window handle:
gst_video_overlay_set_window_handle(GST_VIDEO_OVERLAY(video_sink),
this->ui->playback_widget->winId());
//playback_widget - QOpenGLWidget, I also tried some other output widgets
And same code works on all other platforms, but not on Android.
I know, I need to get the pointer to ANativeWindow, but how can I get this
with Qt on Android? Any help or tip will be very usefull.
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Problem-with-Vorbis-and-Theora-file-on-Android-tp4677085p4677277.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list