Re: how to include rich media in live windows media encoded stream ?
- From: "Neil Smith [MVP Digital Media]" <neil@xxxxxxxxxx>
- Date: Tue, 20 Nov 2007 22:19:01 GMT
On Mon, 19 Nov 2007 07:30:02 -0800, french web tv
<frenchwebtv@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Hi,
I am looking for tips or nice authoring solutions to include rich media in
live streams using windows media encoder.
i.e. display in internet explorer pictures or web pages related to what is
displayed in video, with a real-time events launching ! (on a real-time live
video)
I'm not sure there are any "nice" ones ;-)
If you happened to be using windows media encoder to send your content
to a media server, it has a 'Script Panel' available - you have to add
'Script' as one of the sources in the source panel of WME.
From there, you can select a range of script command types, includingtext and URL commands which are sent within the stream data to the
player.
Only URL commands will be useful here, and when they're received by
the player - and *note* the player is configured to respond to those,
the users default web browser will be started when the player receives
the command, and the URL you specify passed to it.
Your problem will come in reliably entering the text at the precise
time you want to send the command to the players - and there will be a
buffering delay of several seconds (encoder + server + link latency +
player buffers), so don't rely on this for synchronous operations such
as showing time sensitive information.
The best plan would be to do this from a "script", by cut+paste, you
don't want to have to type these URLs in realtime. You can do this
programatically, but the whole operation (including loading the
encoder profile, starting / stopping the encoder etc) would have to be
scripted - you can use VB, Javascript, .NET languages or C++ to do
that.
To configure the player, you need to check Tools -> Options ->
Security, or (in WMP11) More Options -> Security and ensure that the
user has "Run script commands when present", and the second checkbox
if the player is embedded in a web page. More details are at :
http://www.microsoft.com/windows/windowsmedia/player/11/security.aspx
http://www.microsoft.com/windows/windowsmedia/player/9series/security.aspx
If you go for the web page option, you'll additionally have to add
event handlers to the player object, which receive the script commands
and use javascript to open a new window or AJAX or IFrame method to
use the supplied URL. Information about that technique is on MSDN :
There are additional caveats for unpatched media players too :
http://support.microsoft.com/kb/892313
http://support.microsoft.com/kb/828026
Jake Ludlington's site has examples of how to use the windows media
file editor, which is only applicable to offline (archived) content :
http://www.jakeludington.com/project_studio/20051004_windows_media_enhanced_podcast.html
Script commands will be archived with the file, if you choose
archiving in the encoder or directly on the server, so they should
replay OK if it's accessed on demand later.
HTH
Cheers - Neil
------------------------------------------------
Digital Media MVP : 2004-2007
http://mvp.support.microsoft.com/mvpfaqs
.
- Prev by Date: Using WME9 to stream audio files in random order
- Next by Date: Re: Remote Administration: Must be logged on?
- Previous by thread: Using WME9 to stream audio files in random order
- Next by thread: Re: Remote Administration: Must be logged on?
- Index(es):
Relevant Pages
|