Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsWindows Server 2003Windows 2000Windows NTSmall Business ServerVirtual ServerExchange ServerIISHost Integration ServerISA ServerSMSWSUSMOMWindows Media ServerSecurityCertification
Related Topics
SQL ServerMS WindowsMS OfficePC HardwareMore Topics ...

Windows Server Forum / Windows Media Server / February 2005

Tip: Looking for answers? Try searching our database.

Temp Stream Message Before Live Event....

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Scott C. - 07 Dec 2003 05:13 GMT
Here is what I have going on. I just upgraded to WMS9
2003 and I have an event I am going to be doing tomorrow.
I would like to know if I can do the following:

I would like to be streaming an ondemand file
saying "Watch for the upcoming stream" until on site I
start a Push Encode. Then when people visit the same page
or launch in their windows media player they will receive
the live stream instead of the "Watch for upcoming
stream" on-demand file.
Same would also go, if I need to stop the encode on site
for any reason technical and it would then stream a file
saying "Please stand by".

Does anyone have any ideas what I should do to accomplish
this?

Thank you in advance for your help!
~Scott
Jorge Novillo [MS] - 08 Dec 2003 00:35 GMT
Yes, this is possible using server-side playlists and the server object
model to manipulate the playlist on the fly.

1.  Create a unicast broacast publishing point that sources from the
following serverside playlist.  Name the pub point Test.  Modify the
encoder_ad.wmv element's src to point to your infomercial/Watch for the
upcoming stream file.

<?wsx version="1.0"?>
<smil>
   <excl repeatCount="indefinite">
       <media src="encoder_ad.wmv" repeatCount="indefinite" begin="0"/>
       <media src="lpp://LiveEncoder1" begin="SwitchToBroadcast"
id="liveElement" />
       <media src="YouMissedTheShow.wmv" begin="liveElement.end"
repeatCount="indefinite" />
   </excl>
</smil>

2.  Create a separate broadcast publishing point that sources from the
encoder.  Call this pub point "LiveEncoder1".  In your case, you are
pushing from encoder to server so you would simply push to a pub point
named LiveEncoder1.

3.  Save the following vbscript as "StartEncoderRemotely.vbs"

Const BCPPName = "Test"
'create server object
Set WMServer = CreateObject ("WMSServer.Server", "machineName" )
'set bcpp object
Set BCPP = WMServer.Publishingpoints(BCPPName)
'set sspl object
Set Playlist = BCPP.SharedPlaylist
'fire event
Playlist.fireEvent "SwitchToBroadcast"

4.  Edit StartEncoderRemotely.vbs in notepad and modify the machineName
with the machine name of the WMServer

5.  Start the Test pub point (without starting the encoder), connect a
client and notice how the ad continuously repeats.

6.  Start the Encoder session, start the LiveEncoder1 pub point, then run
StartEncoderRemotely.vbs from a cmd prompt on the server machine.  note:
this vb script can also be run on the encoder as long as the user has admin
access.

7.  notice how the playlist interupts the ad and jumps to the liveEncoder1
element.

note:  You can run the VB Script from the encoder as long as the user has
admin access to the server.  See the MMC admin help docs regarding dcom
access.  

Thanks for using Windows Media Technologies.

Jorge Novillo [MS]
Digital Media Division

This posting is provided "AS IS" with no warranties, and confers no rights.
The use of any included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
John - 12 Dec 2003 07:27 GMT
Hi Jorge, I have a similar problem. I want to create a
publishing point that can switch from a playlist to live
and back to the playlist. The ideal senario is the client
pushes an encoder stream to a publishing point, the
current content stops to allow the live content to
broadcast. Once the live broadcast is over, the server
side playlist begins again. Is this possible?
>-----Original Message-----
>Yes, this is possible using server-side playlists and the server object
[quoted text clipped - 59 lines]
>The use of any included script samples are subject to the terms specified at
>http://www.microsoft.com/info/cpyright.htm
Jorge Novillo [MS] - 16 Dec 2003 18:30 GMT
If I understand your scenario correctly, you should be able to use a
slightly different version of the solution i provided earlier.  If you want
to provide 1,2,3 steps and more details on your scenario, i can try to help
tailor the solution to your specific scenario.

Thanks for using Windows Media Technologies.

Jorge Novillo [MS]
Digital Media Division

This posting is provided "AS IS" with no warranties, and confers no rights.
The use of any included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
wizard0304 - 25 Feb 2005 02:59 GMT
Tell me what is wrong with this vbscript:
I'm getting a syntax error
Const BCPPName = "Test"
'create server object
Set WMServer = CreateObject ("WMSServer.Server", "xyz.media.net" )
'set bcpp object
Set BCPP = WMServer.Publishingpoints(BCPPName)
'set sspl object
Set Playlist = test.SharedPlaylist
'fire event
Playlist.fireEvent "SwitchToBroadcast"
Also. I'm not using "encoder_ad.wmv"
I simply want the "unicast" BCPP to start when the "test" bcpp starts.
Help!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.