Comment 2 for bug 1176974

Revision history for this message
Nathan Dyer (nathandyer) wrote :

It should be pretty easy to create an audio/video library in Granite to do exactly what we're looking for. We could actually make it so that you initialize a player and then it returns a typical GTK widget, prepacked with all the clutter textures and playback controls, that a developer could then just add to any additional container they wanted. So, in theory, it would be basically 4 lines of code to play a video.

For instance:

var video = new Granite.Media.VideoPlayer();
video.uri = "https://foo.com/foo.mp4";
pack_start(video);
video.play();
show_all();