Re: how to include rich media in live windows media encoded stream ?



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, including
text 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
.



Relevant Pages

  • RE: Media Player 10 und SATA-Brenner
    ... dass auf Ihrem Computer der Windows Media ... Player in der neuesten Version installiert ist. ... Klicken Sie bitte anschließend auf. ...
    (microsoft.public.de.german.windowsxp.multimedia)
  • Re: Get nasty security message using EMBED in html
    ... Song should play automatically. ... media file types, ... usually can use an ActiveX object to play on an IE browser. ... The media is played by a media player and not a browser. ...
    (alt.html)
  • Re: How can I disable windows media center in vista
    ... off Media Center as autoplay in the AutoPlay settings, ... Inserting a dvd still opens up media center. ... Microsoft hasn't seen fit to FIX it's Media Player. ...
    (microsoft.public.windows.vista.music_pictures_video)
  • Re: How can I disable windows media center in vista
    ... Inserting a dvd still opens up media center. ... Go to Control Panel, then Auto Play. ... Microsoft hasn't seen fit to FIX it's Media Player. ...
    (microsoft.public.windows.vista.music_pictures_video)
  • Re: Media Player 11 corruption?
    ... This forum is to address all Media Player's "corruptions" and errors. ... I have identified where Media Player gets its entry for the preferred MPEG ... which can be assigned independently from the system general MPEG decoder. ...
    (microsoft.public.windows.vista.general)