Abstract video player into a widget/library

Bug #1176974 reported by Sergio Spinatelli
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Audience
Triaged
Wishlist
Unassigned

Bug Description

It would be nice if there was a simple "audience library" to make it possible to embed an audience window in another app.
For example, Birdie could embed a video window for youtube videos inside the main window, instead of opening a new one..
Just an idea..

Related branches

Changed in audience:
importance: Undecided → Wishlist
Revision history for this message
Danielle Foré (danrabbit) wrote :

From a design perspective: what I would imagine is we'd just want the video player itself with the overlay playback controls. To make sure this widget can be the same as used in Audience then I guess we'd want an API to add actions to the right side of the control bar

Changed in audience:
milestone: none → loki-beta1
status: New → Confirmed
summary: - Make it possible to embed audience in other apps
+ Abstract video player into a widget/library
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();

Changed in audience:
milestone: loki-beta1 → none
RabbitBot (rabbitbot-a)
Changed in audience:
status: Confirmed → Fix Committed
Cody Garver (codygarver)
Changed in audience:
status: Fix Committed → Confirmed
Revision history for this message
Cassidy James Blaede (cassidyjames) wrote :
Changed in audience:
status: Confirmed → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.