Go back and change child data.

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

Go back and change child data.

Postby genie » Sun Feb 27, 2011 5:34 am

Hi,

The plugin that I'm working on doesn't know if the stream is available or not.

The soonest I can check if the stream is available is when I'm already in the class that extends the we WebStream class, my custom class.

Is it possible to update the webstream child so that when I start playing the stream that to play something else than what was initially asked to do?

For example: initially the stream url is playing http://videoOK but now i want to play http://videoBad

I can't seem to be able to get to the child and update the info.

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

Re: Go back and change child data.

Postby chocolateboy » Sun Feb 27, 2011 5:57 am

It sounds like you're trying to reinvent PMSEncoder:

Code: Select all
script {
    profile ('Example') {
        pattern {
            domain 'bad.com'
        }

        action {
            $URI = 'http://good.com'
        }
    }
}
chocolateboy
Project Member
 
Posts: 2580
Joined: Wed Sep 16, 2009 10:05 am

Re: Go back and change child data.

Postby genie » Sun Feb 27, 2011 6:04 am

It's not a reinvent for PMSEncoder :D. It's not as complex as PMSencoder. The plugin will be a reliable way to watch sopcast, for NT at the moment.

Since I think you already have this implemented or have a better idea is it possible to do it in Java?
genie
 
Posts: 35
Joined: Mon Dec 07, 2009 8:33 pm

Re: Go back and change child data.

Postby chocolateboy » Sun Feb 27, 2011 6:40 am

chocolateboy
Project Member
 
Posts: 2580
Joined: Wed Sep 16, 2009 10:05 am

Re: Go back and change child data.

Postby genie » Sun Feb 27, 2011 2:24 pm

oh, I don't mean if it possible to play sopcast but if it's possible to change the stream input source after the child was created but before the player starts asking for the input source.
genie
 
Posts: 35
Joined: Mon Dec 07, 2009 8:33 pm

Re: Go back and change child data.

Postby SharkHunter » Mon Feb 28, 2011 8:47 am

Of course it is possible. PMSEncoder does as well as the Channel plugin (viewtopic.php?f=12&t=9329). The Channel plugin presents the user with media which does not contain the real media URL since this might need to be subject to some extra scraping. To avoid all the scraping to be done when the media is found the scraping is not done until the actual playing starts. (i.e it is done in the getInputStream() method) and changes the URL to something completly different.
If this is to complicated to understand from my unsorted jibbrish take a peek here https://github.com/SharkHunter/Channel/ ... tream.java
SharkHunter
 
Posts: 941
Joined: Tue Jun 01, 2010 8:39 pm


Return to Developers

Who is online

Users browsing this forum: Bing [Bot] and 2 guests