Comment 14 for bug 1387691

Revision history for this message
MichaƂ Sawicz (saviq) wrote :

Output from a chat with tvoss today:

We foresee two parallel approaches: a media player widget and a player using trusted sessions.

1)
If your app has video playback caps + apparmor profile, you should just be able to go:

VideoPlayer { // name TBD, component to be ~extracted from the current media player app into the SDK
    source: "url://to/video"
}

That's it. It should be an item as any other in your QML scene, and have a button to put it fullscreen. Hardware decoding included.

2)
If you don't want to embed the player in your app, dispatching a URL to it should result in the video player opening as a trusted session for your app, covering it whole.

That might not necessarily be the behaviour we want for windowed mode, where we might want an actual player app, but that we'll have to determine when we get there.