[Gtk-sharp-list] Video widget

Guille gescudero at gmail.com
Wed Sep 19 17:26:17 UTC 2012


Hi again,

Well, finally I'm trying to work with gst-sharp, reading the plain C
documentation I could do this simple example if someone is interested:

public static void Main (string[] args)
{
//Init
Gst.Application.Init("Mi Applicacion", ref args);

//source element
//file example
//Element source = Gst.Parse.Launch("playbin2
uri=file:///xtras/video/Animacion/abc.mkv");
//streaming example
Element source = Gst.Parse.Launch("playbin2 uri=
http://docs.gstreamer.com/media/sintel_trailer-480p.webm");
//Pipeline
Gst.Bin bin = new Pipeline("pipeline");

bin.Add(source);

bin.SetState(State.Playing);

Gst.Bus bus = bin.Bus;
bus.Poll(Gst.MessageType.Eos, (long)Gst.Clock.TimeNone );
}

-- 
Guille
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20120919/bca089d6/attachment.html>


More information about the Gtk-sharp-list mailing list