smi file not being displayed from windows 2003 web server?
WMPTalk.com Forum Index WMPTalk.com
Discuss Windows Media Player
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web wmptalk.com
smi file not being displayed from windows 2003 web server?

 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> Windows Media on Web
Author Message
Saqib
Guest





Posted: Mon Jun 20, 2005 4:30 pm    Post subject: smi file not being displayed from windows 2003 web server? Reply with quote

Hi!
I've embedded WMP in html as follows. Closed captioning is working
fine if file path is from windows 2000 web server but CC is not being
displayed if file path is from windows 2003 web server on client side.
Client is having WMP version 9.
It works fine if file is played independently.
How can I resolve the issue?

<OBJECT classid = "clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6" height =
300
id = Player1 width = 300>
<param name = "AutoStart" value = "1">
</OBJECT><BR>

<DIV style = "width:300; height:90;position:relative;
background-color:black"; id = CapText></DIV>

<SELECT id = "CaptionsStyle" language = "JScript" name = CCStyle
onchange = "Player1.closedCaption.SAMIStyle = CCStyle.value">
<OPTION selected value = SmallTxt>Small Text
<OPTION value = BigTxt>Big Text
</SELECT>
<SELECT id = "CaptionsLang" language = "JScript" name = CCLang
onchange = "Player1.closedCaption.SAMILang = CCLang.value">
<OPTION selected value = "English Captions">English
<OPTION value = "French Captions">French
</SELECT>

<SCRIPT language = "JavaScript" for = "window" event = "onload"><!--
Player1.closedCaption.captioningID = "CapText";
//Player1.closedCaption.SAMIFileName =
"http://Win2/dvIPTV93_Remote/CONTENT/speciallyforsoftechinproductiondatabase/abcyo_327_6182005_171943.smi";
Player1.closedCaption.SAMIFileName = "a.smi";
Player1.closedCaption.SAMILang = CCLang.value;
Player1.closedCaption.SAMIStyle = CCStyle.value;
//Player1.URL =
"http://Win2/dvIPTV93_Remote/CONTENT/speciallyforsoftechinproductiondatabase/abcyo_327_6182005_171943.avi";
Player1.URL = "a.avi";
</SCRIPT>

Thanks in advance,
Saqib

Back to top
Neil Smith [MVP Digital M
Guest





Posted: Mon Jun 20, 2005 4:30 pm    Post subject: Re: smi file not being displayed from windows 2003 web serve Reply with quote

On 20 Jun 2005 04:44:09 -0700, "Saqib" <saqibumar@gmail.com> wrote:

Quote:
Hi!
I've embedded WMP in html as follows. Closed captioning is working
fine if file path is from windows 2000 web server but CC is not being
displayed if file path is from windows 2003 web server on client side.

I'm not sure I understood what you just said : You are hosting the web
page containing the code below**, on a Win2003 web server, but then
you expect the client to acquire the SAMI file from the *client side*
file system, not the *web server* ?

It won't work, because you have just attempted a cross-site hosting
attack into the 'Local Security Zone' . It's a security issue.

** PS Your HTML code is very very *very* invalid HTML. Please run a
validator or HTMLTidy on the HTML code before use, or you will
encounter a wide range of unpredictable behaviour. I speak from
experience ;-))

Cheers - Neil


Quote:
Client is having WMP version 9.
It works fine if file is played independently.
How can I resolve the issue?

OBJECT classid = "clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6" height =
300
id = Player1 width = 300
param name = "AutoStart" value = "1"
/OBJECT><BR

DIV style = "width:300; height:90;position:relative;
background-color:black"; id = CapText></DIV

SELECT id = "CaptionsStyle" language = "JScript" name = CCStyle
onchange = "Player1.closedCaption.SAMIStyle = CCStyle.value"
OPTION selected value = SmallTxt>Small Text
OPTION value = BigTxt>Big Text
/SELECT
SELECT id = "CaptionsLang" language = "JScript" name = CCLang
onchange = "Player1.closedCaption.SAMILang = CCLang.value"
OPTION selected value = "English Captions">English
OPTION value = "French Captions">French
/SELECT

SCRIPT language = "JavaScript" for = "window" event = "onload"><!--
Player1.closedCaption.captioningID = "CapText";
//Player1.closedCaption.SAMIFileName =
"http://Win2/dvIPTV93_Remote/CONTENT/speciallyforsoftechinproductiondatabase/abcyo_327_6182005_171943.smi";
Player1.closedCaption.SAMIFileName = "a.smi";
Player1.closedCaption.SAMILang = CCLang.value;
Player1.closedCaption.SAMIStyle = CCStyle.value;
//Player1.URL =
"http://Win2/dvIPTV93_Remote/CONTENT/speciallyforsoftechinproductiondatabase/abcyo_327_6182005_171943.avi";
Player1.URL = "a.avi";
/SCRIPT

Thanks in advance,
Saqib
Back to top
Saqib
Guest





Posted: Tue Jun 21, 2005 4:14 pm    Post subject: Re: smi file not being displayed from windows 2003 web serve Reply with quote

media file and smi file both are on same windows 2003 web server (IIS 6.0) so
there's no.
Mime types on web server is application/octet-stream for .smi files.
Following code is working fine with windows 2000 server.
My problem is that clients are unable to view associated closed captions.


```````````````Code starts here```````````````````````````````

<script language="JavaScript">
document.write('<object name="MediaPlayer" width="300" height="315"
id="MediaPlayer" classid= "CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715"
align="baseline" border="0" standby="Loading Microsoft Windows Media Player
components..." type="application/x-oleobject" VIEWASTEXT>');
document.write('<param name="FileName" value="<%=CE_Media_Path%>">');
document.write('<param name="ShowCaptioning" value="0">');
document.write('<PARAM NAME="CaptioningID" VALUE="CC">');
document.write('<param name="ShowStatusBar" value="true">');
document.write('<param name="ShowControls" value="1">');
document.write('<embed width="300" height="315" src="<%=CE_Media_Path%>"
type="application/x-mplayer2"
pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" loop="false"
autostart="1" controls="true" showdisplay="0" showcontrols="1" autorewind="1"
playcount="1" moviewindowheight="240" moviewindowwidth="320"
CaptioningID="CC" filename="<%=CE_Media_Path%>">');
document.write('</object>');
MediaPlayer.ShowStatusBar = true;

document.write('<DIV ');
document.write('id=CC ');
document.write('title="Caption Window" ');
document.write('style="margin:5; width:300; height:78; background: Black;
inset silver; position:relative;display:none;">');
document.write('</DIV>');

</script>

```````````````Code ends here```````````````````````````````


Thanks in advance,
Saqib

Back to top
Neil Smith [MVP Digital M
Guest





Posted: Tue Jun 21, 2005 4:30 pm    Post subject: Re: smi file not being displayed from windows 2003 web serve Reply with quote

On Tue, 21 Jun 2005 04:14:03 -0700, "Saqib"
<Saqib@discussions.microsoft.com> wrote:

Quote:
media file and smi file both are on same windows 2003 web server (IIS 6.0) so
there's no.
Mime types on web server is application/octet-stream for .smi files.

Send header("Content-type:video/x-ms-asf") for SAMI files.

Quote:
Following code is working fine with windows 2000 server.

But this is different code (especially, player ClassID) than you
originally posted - which will instantiate the 6.4 player rather than
later (version 7-10) media players.

Please keep the original code and repair it, or use the code below on
both servers.

I notice in the code below, you have used ShowCaptioning="0", which
turns off captioning ! And in the original code, you have told the
player to autostart in the param tag, but generated a race condition
by using script-for to set the captioning ID after the page loads.

I suggest you go back and rewrite your code in the minimum possible
way to reproduce this problem, then try adding back the 'clever' stuff
until it breaks. Currently there are too many problems in your code to
begin to suggest where to look for a fault. So, please do this in a
consistent way between both servers.

Do you think it might help to provide a live URL to test this, to
ensure it's not a system-specific issue for your test machines ?

Cheers - Neil

Quote:
My problem is that clients are unable to view associated closed captions.


```````````````Code starts here```````````````````````````````

script language="JavaScript"
document.write('<object name="MediaPlayer" width="300" height="315"
id="MediaPlayer" classid= "CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715"
align="baseline" border="0" standby="Loading Microsoft Windows Media Player
components..." type="application/x-oleobject" VIEWASTEXT>');
document.write('<param name="FileName" value="<%=CE_Media_Path%>">');
document.write('<param name="ShowCaptioning" value="0">');
document.write('<PARAM NAME="CaptioningID" VALUE="CC">');
document.write('<param name="ShowStatusBar" value="true">');
document.write('<param name="ShowControls" value="1">');
document.write('<embed width="300" height="315" src="<%=CE_Media_Path%>"
type="application/x-mplayer2"
pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" loop="false"
autostart="1" controls="true" showdisplay="0" showcontrols="1" autorewind="1"
playcount="1" moviewindowheight="240" moviewindowwidth="320"
CaptioningID="CC" filename="<%=CE_Media_Path%>">');
document.write('</object>');
MediaPlayer.ShowStatusBar = true;

document.write('<DIV ');
document.write('id=CC ');
document.write('title="Caption Window" ');
document.write('style="margin:5; width:300; height:78; background: Black;
inset silver; position:relative;display:none;">');
document.write('</DIV>');

/script

```````````````Code ends here```````````````````````````````


Thanks in advance,
Saqib
Back to top
 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> Windows Media on Web All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Microsoft Office Forum New Topics
Powered by phpBB