StreamingLibBackend

public class StreamingLibBackend implements StreamingLib

This class implements the StreamingLib interface. It internally uses the GStreamer library as backend. So, you can get a StreamingLib 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 a IStream instance you can call the createStream(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

Methods

createStream

public IStream createStream(HashMap<String, String> configParams, Handler notificationHandler)

initLib

public void initLib(Context context)