StreamingLibBackend¶
-
public class
StreamingLibBackend
implements StreamingLib¶ This class implements the
StreamingLib
interface. It internally uses the GStreamer library as backend. So, you can get aStreamingLib
instance in the following way:StreamingLib myStreamingLib = new StreamingLibBackend(); myStreamingLib.initLib(getApplicationContext());
Remember that, before using the library, you must call the method
initLib(Context)
to initialize it. To get aIStream
instance you can call thecreateStream(HashMap,Handler)
method:HashMap stream1_params = new HashMap(); stream1_params.put("name", "Stream_1"); stream1_params.put("uri", "http://docs.gstreamer.com/media/sintel_trailer-368p.ogv"); Handler notificationHandler = new Handler(this); IStream myStream = myStreamingLib.createStream(stream_1_params, notificationHandler);
See also:
StreamingLib