Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Continuous sequential streaming possible ?

Armachnesti Lumiere
Fictional realist
Join date: 2 May 2004
Posts: 7
08-10-2005 09:41
Basically what I am trying to accomplish is to allow a media player object, lets say for sh*ts and giggles...a plasma screen, to recognize when it is no longer displaying a media stream. The end result of which would be for it to set the next http that it is pulling from a note card and play it...then rise and repeat. Continuous sequential streaming...more like a normal TV and less like a DVD player. Assuming that its possible, with very little effort, you could actually create viewing channels instead of individual movies or clips.

The only solution that I can see is to use a timer and time each clip, movie, video, etc. individually. Which is just far too much effort for the return. I was thinking that there MIGHT be a way for the viewer to recognize the texture that it is displaying and when it displays its default media texture it then switches to the next http.

Anyhow I am far too brain dead at the moment to attempt to tackle this. I thought someone out there might have a clue and get the ball rolling. IMO if it cant be done without timers....well....why not. Seems like a normal progression of logic when your creating a media player anyhow.

Anyone got a clue ? :cool:
DoteDote Edison
Thinks Too Much
Join date: 6 Jun 2004
Posts: 790
08-10-2005 13:35
Currently, there's no way within LSL to know whether or not a texture/stream is valid.

So, the best solution is external. Sorta like mp3 streaming, build a video playlist that feeds your stream. I know it's possible, but I'm not sure how. It's no different than what you see at most media websites with streaming video. When you click to view a video, you get a 30-second commercial first. The commercial is dynamically inserted, based on a few factors such as your location, or prior viewing habits. Then, the video you want to see plays, sometimes followed by a second dynamic commercial. Same method could be used for your needs.
Michael Psaltery
Registered User
Join date: 6 Jun 2004
Posts: 57
08-10-2005 14:14
From: Armachnesti Lumiere
Basically what I am trying to accomplish is to allow a media player object, lets say for sh*ts and giggles...a plasma screen, to recognize when it is no longer displaying a media stream. The end result of which would be for it to set the next http that it is pulling from a note card and play it...then rise and repeat. Continuous sequential streaming...more like a normal TV and less like a DVD player. Assuming that its possible, with very little effort, you could actually create viewing channels instead of individual movies or clips.

The only solution that I can see is to use a timer and time each clip, movie, video, etc. individually. Which is just far too much effort for the return. I was thinking that there MIGHT be a way for the viewer to recognize the texture that it is displaying and when it displays its default media texture it then switches to the next http.

Anyhow I am far too brain dead at the moment to attempt to tackle this. I thought someone out there might have a clue and get the ball rolling. IMO if it cant be done without timers....well....why not. Seems like a normal progression of logic when your creating a media player anyhow.

Anyone got a clue ? :cool:


Since the video is streamed separately to each client, I think one person could view the beginning of a clip even as someone else if viewing the middle or end. This is client-side, and thus doesn't make sense to have the kind of control you're talking about. However, I would wait a couple of versions until HTML on prim surfaces is more implemented, and see what you can do with that.
Aliasi Stonebender
Return of Catbread
Join date: 30 Jan 2005
Posts: 1,858
08-10-2005 14:17
One thing you can do, as a sort of work-around, is what I do to "stream" music off my webspace; set up a list of URLs along with number of seconds to the clip. When the stream is turned on, set a timer event equal to that length - people who come in during the middle will have the first movie they see "cut off", but past that it would be sequential.
_____________________
Red Mary says, softly, “How a man grows aggressive when his enemy displays propriety. He thinks: I will use this good behavior to enforce my advantage over her. Is it any wonder people hold good behavior in such disregard?”
Anything Surplus Home to the "Nuke the Crap Out of..." series of games and other stuff
Armachnesti Lumiere
Fictional realist
Join date: 2 May 2004
Posts: 7
Sigh....dare to dream....
08-10-2005 16:16
Yea...I had kinda figured that there wasent' a 'simple' way to do this. I probably would of run across it at some time or another in the past. Though, I was kinda hanging on to the hope that there was something that I had over looked.

Timer settings in game will work I suppose. Just seems like alot of work for little return. Especially if you are pulling URLs from public sources. Which would change constantly and require constant updating.

Thanks :cool:
_____________________
~ Armachnesti Lumiere ~

The mind is where science and fantasy meet. Logic tells us which to believe is real and which to believe is not. Choose to believe in both.
phoenix Behemoth
Registered User
Join date: 7 Oct 2004
Posts: 14
i did find a way timer
08-10-2005 16:25
the solution i found was to set a timer the same legnth as the video in script the after time runs out move to next 1
Aliasi Stonebender
Return of Catbread
Join date: 30 Jan 2005
Posts: 1,858
08-10-2005 16:57
From: Armachnesti Lumiere
Yea...I had kinda figured that there wasent' a 'simple' way to do this. I probably would of run across it at some time or another in the past. Though, I was kinda hanging on to the hope that there was something that I had over looked.

Timer settings in game will work I suppose. Just seems like alot of work for little return. Especially if you are pulling URLs from public sources. Which would change constantly and require constant updating.

Thanks :cool:


Well, making it read a notecard for settings helps a little.

As does, in my case, pulling it from your own webspace. ;)
_____________________
Red Mary says, softly, “How a man grows aggressive when his enemy displays propriety. He thinks: I will use this good behavior to enforce my advantage over her. Is it any wonder people hold good behavior in such disregard?”
Anything Surplus Home to the "Nuke the Crap Out of..." series of games and other stuff
EABlade Keen
Registered User
Join date: 27 Apr 2006
Posts: 113
12-14-2006 17:53
ok, but how would you go about scripting a player that would pull a notcard off a web site and play the content URL's
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
12-15-2006 02:37
From: EABlade Keen
ok, but how would you go about scripting a player that would pull a notcard off a web site and play the content URL's


Since notecards are SL created assets you cant.