PLUGIN action before playing the stream

Discuss issues related to PS3 Media Server development (only for programmers)

PLUGIN action before playing the stream

Postby genie » Wed Feb 23, 2011 2:49 am

Hi,

I need to run some processing right before I need to start the stream.

I tried with resolve() but this get's called when the parent folder get's generated, at that time I don't know what to do, everything depends in what folder the user will go into. Once the user goes into I folder I know what he wants to do and I can do what I want.

Basically I would like to build a tree like:

ROOT FOLDER
-Stream1 Folder
--stream1[Mencoder]
-Stream2 Folder
--stream2[Mencoder]
-stream3 Folder
--stream3[Mencoder]

I need to do some operations when I go into 'StreamX Folder'.

Does anybody know how to achieve that? Or how to add a 'streamX[Mencoder]' into a folder. By using addChild it always ads a folder.

Thank you.
genie
 
Posts: 35
Joined: Mon Dec 07, 2009 8:33 pm

Re: PLUGIN action before playing the stream

Postby genie » Wed Feb 23, 2011 6:06 am

I was finally able to do it.
I created new classes that extend the classes in order:

AdditionalFolderAtRoot
-VirtualFolder
--WebStream - added my code in the resolve section for this extension and the problem was resolved.
genie
 
Posts: 35
Joined: Mon Dec 07, 2009 8:33 pm


Return to Developers

Who is online

Users browsing this forum: No registered users and 1 guest