Re: Enabled param on first clip in a playlist
- From: "zachd [MSFT]" <zachd@xxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 16 Feb 2006 22:27:22 -0800
This isn't something I've ever cared to figure out... either the WMP SDK or
a site that does do this should let you figure it out. Since I don't know
of a site that does this, I don't know how people are doing this out in the
wild. I think there's a NoSkip attribute in the ASX... ?
-Z
--
Windows Media Development Team (speaking for myself only)
See http://zachd.com/pss/pss.html for some helpful WMP info.
This posting is provided "AS IS" with no warranties, and confers no rights.
--
"Dale Steinke" <Dale Steinke@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:E882E0B5-CD77-4D3A-A33B-5C1AE4431CB0@xxxxxxxxxxxxxxxx
Hi,
I'm trying to figure out how to disable the fast-forward buttons on the
first video in a playlist (OK, it's an ad), then enable the buttons on the
second video - the actual content. Any ideas on making this work like it
does
on the big media sites would be greatly appreciated.
I've got this code I'm playing with, but it shuts down the control buttons
for both clips. The operative param is
document.write("<PARAM name=\"enabled\" VALUE=\"false\">");
Here's the full script.
<SCRIPT LANGUAGE="JavaScript">
<!--
var agt=navigator.userAgent.toLowerCase();
var is_mac = (agt.indexOf("mac")!=-1);
if(!is_mac){
if((wmPlayer_adurl == undefined)||(wmPlayer_adurl.indexOf(".wmv") == -1))
{
var wmPlayer_adurl="";
} else {
wmPlayer_adurl = "mms://beloint.wmod.llnwd.net/a125/o1/" + wmPlayer_adurl;
}
} else {
var wmPlayer_adurl="";
}
var wmPlayer_adclickthru="";
var wmPlayer_adgraphic="";
document.write("<OBJECT ID=\"mediaPlayer\"
CLASSID=\"CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6\" width=\"320\"
height=\"306\">");
// document.write("<OBJECT ID=\"mediaPlayer\"
CLASSID=\"CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95\" width=\"320\"
height=\"306\">");
document.write("<PARAM name=\"URL\"
value=\"http://"+window.location.host+"/cgi-bin/bi/video/makeadplaylist.pl?title=www.king5.com/refresh5/kiwebwx.wmv&adurl="+wmPlayer_adurl+"&adclickthru="+wmPlayer_adclickthru+"&adgraphic="+wmPlayer_adgraphic+"\">");
document.write("<PARAM name=\"enabled\" VALUE=\"false\">");
document.write("<PARAM name=\"autoStart\" value=\"True\">");
document.write("<PARAM name=\"PreviewMode\" VALUE=\"True\">");
document.write("<EMBED type=\"application/x-mplayer2\";
pluginspage=\"http://www.microsoft.com/Windows/MediaPlayer/\"");
document.write("
SRC=\"http://"+window.location.host+"/cgi-bin/bi/video/makeadplaylist.pl?title=www.king5.com/refresh5/kiwebwx.wmv&adurl="+wmPlayer_adurl+"&adclickthru="+wmPlayer_adclickthru+"&adgraphic="+wmPlayer_adgraphic+"\";
width=320; height=306; autostart=1; previewmode=0; showcontrols=1>");
document.write(" </EMBED>");
document.write("</OBJECT>");
//-->
</SCRIPT>
.
- Follow-Ups:
- Re: Enabled param on first clip in a playlist
- From: Dale Steinke
- Re: Enabled param on first clip in a playlist
- Prev by Date: Re: MP10 Missing view of files in library
- Next by Date: Re: Download Problems
- Previous by thread: Re: MP10 Missing view of files in library
- Next by thread: Re: Enabled param on first clip in a playlist
- Index(es):