PDA

View Full Version : Phonon stuff



stevey
31st August 2009, 08:31
I was just wondering if anyone has any idea how to customise phonon neatly. I'm trying to determine an approach for integrating a licencing system within a suite of tools which provides video training for clients. The video content needs to be encrypted in some fashion requiring an "key" in order to playback the content.

I'd like to extend phonon to essentially playback a new file type, which would perform the decryption. Can this be done? I've been having trouble identifying what can be subclassed to achieve the goal.

Thanks,

Steve

wysota
31st August 2009, 10:42
Isn't it enough to provide a media object that takes a QIODevice as input? You can then implement your own QIODevice and do the decryption there.

stevey
31st August 2009, 12:16
Isn't it enough to provide a media object that takes a QIODevice as input?
Well I'm asking because I don't know. I know nothing about phonon and had trouble finding info on where to turn.


You can then implement your own QIODevice and do the decryption there.
So, do I need to create my MediaObject as well, or will just doing a QIODevice suffice?
I don't see anything abstract in Phonon::MediaObject.

wysota
31st August 2009, 12:26
Well I'm asking because I don't know. I know nothing about phonon and had trouble finding info on where to turn.
Take a look at MediaSource constructors.