simple (probably dumb) question about the android sample gst-player

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

simple (probably dumb) question about the android sample gst-player

Chuck Crisler-3
I am trying to adapt this sample to a generic java application (not for android) but can't find any file that contains a 'public static void main()' method. Is there one? If not, where does execution start?

A second question is what surface type should I use to display live video, assuming either swing or javafx. I intend to use the same model as the example, create a surface in the GUI and pass it to GStreamer for video display. Can you create multiple concurrent surfaces to display multiple parallel video streams?

Thank you,
Chuck Crisler

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: simple (probably dumb) question about the android sample gst-player

Sebastian Dröge-3
On Mi, 2016-05-11 at 22:10 -0400, Chuck Crisler wrote:
> I am trying to adapt this sample to a generic java application (not
> for android) but can't find any file that contains a 'public static
> void main()' method. Is there one? If not, where does execution
> start?

Android applications don't have a main(). I would recommend to first go
through a couple of Android app development tutorials, or through the
documentation about that.

This here is like the main(), but not completely:
https://github.com/sdroege/gst-player/blob/master/android/app/src/main/java/org/freedesktop/gstreamer/player/Play.java#L50

> A second question is what surface type should I use to display live
> video, assuming either swing or javafx. I intend to use the same
> model as the example, create a surface in the GUI and pass it to
> GStreamer for video display. Can you create multiple concurrent
> surfaces to display multiple parallel video streams?

Android has neither swing nor javafx. You have to use the APIs that it
provides, specifically android.view.View and android.view.Surface*

--
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 (968 bytes) Download Attachment