Jump to content
Reliance Jio & Reliance Mobile Discussion Forums
::Hitesh::

Any ASP / HTML expert here ?-- Need Help

Recommended Posts

I am working on small charity project,

I have a AS/HTMLP page which have embed media player object ,

file name is trigger by another software. As of now with below code I am able to play the video correctly without any issues. this is running on local IIS server installed on windows XP-SP3.

Only problem is I want to play these videos in full screen without user clicking any buttons or link. video plays almost full screen but shows tracker and controls I want to hide these tracker and control and make it true full screen.

system = windows xp 32bit SP3 / IE-6 / WMP-9

<html>

<head>
<script>
function hideScrollBar()
{
document.body.style.overflow = 'hidden';
}
</script>
<title>Commercial</title>
<meta name="Microsoft Theme" content="copy-of-zero 000, default">
</head>

<body onLoad="hideScrollBar()">
<%
l_fileName = Request.QueryString("FileName")
l_vol=Request.QueryString("Vol")
if IsNull(l_vol) then
l_vol="-1"
end if
if IsNull(l_fileName) then
Response.write "No MPG File Provided"
else
l_ext = UCase(Right(l_fileName, 4))
if IsNull(l_ext) then
Response.write "Less than 4 characters in Extension"
else
if (l_ext = ".BMP") or (l_ext = ".JPG") or (l_ext = ".GIF") then

%>
<img src="
<% Response.write l_fileName %>" height="100%" width="100%"></img>
<%
else
%>

<object id="mediaplayer" classid="clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#version=5,1,52,701"
standby="loading microsoft windows media player components..." type="application/x-oleobject" width="1024" height="790">
<param name="filename" value="<% Response.write l_fileName%>">
<param name="animationatstart" value="false">
<param name="transparentatstart" value="true">
<param name="autostart" value="true">
<param name="showcontrols" value="false">
<param name="ShowStatusBar" value="false">
<param name="windowlessvideo" value="true">
<embed src="<% Response.write l_fileName%>" autostart="true" showcontrols="false" showstatusbar="0" bgcolor="black"
width="1024" height="790">
</object>


<%
end if
end if
end if
%> </body>

</html>

Share this post


Link to post
Share on other sites

Instead of width="1024" height="790" try width="100%" height="100%" in both <object> and </object> see if it works?

e.g.

<div style="position: fixed; z-index: 9999; width: 100%; height: 100%">
<iframe frameborder="0" height="100%" width="100%" 
src="www.youtube.com/embed/pfHxl46KyZM?
rel=0&autoplay=1&controls=0&loshowinfo=0&autohide=1">
</iframe>
</div>
Edited by digitalnirvana
  • Like 1

Share this post


Link to post
Share on other sites

Thanks for suggestion, but HxW it self is too small to become full screen , so I have to set a size of screen (1024*768+) , this way I get almost full screens but controls (tracker + play stop buttons ) won't go. By increasing height to 780 approx controls goes out of screen. But still it's not perfect full screen.

Got the solution :- if you see I was using classid of WMP 6.4, this code works well on win2k systems with wmp6.4 as native default.

But in xp by default it is 7+, and with sp2/3 it's wmp9.

From wmp7 onwords classid of wmp changed . after changing the classid I was able to use parameters like full screen and ui.mode=none.

This did the trick and now it is playing in full screen without any issues.

Will post the full code if some one needs it in future.

Posted by Moto G on Reliance CDMA

  • Like 1

Share this post


Link to post
Share on other sites

<html>

<head>
<script>
function hideScrollBar()
{
document.body.style.overflow = 'hidden';
}
</script>
<title>Commercial</title>
</head>
<body onLoad="hideScrollBar()" bgcolor="#000000">
<%
l_fileName = Request.QueryString("FileName")
l_vol=Request.QueryString("Vol")
if IsNull(l_vol) then
l_vol="-1"
end if
if IsNull(l_fileName) then
Response.write "No MPG File Provided"
else
l_ext = UCase(Right(l_fileName, 4))
if IsNull(l_ext) then
Response.write "Less than 4 characters in Extension"
else
if (l_ext = ".BMP") or (l_ext = ".JPG") or (l_ext = ".GIF") then
%>
<img src="<% Response.write l_fileName %>" height="145%" width="150%"></img>
<%
else
%>
<object height="100%" width="100%" classid="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6" id="MediaPlayer1" style="float: top">
<param name="URL" value="<% Response.write l_fileName %>">
<param name="rate" value="1">
<param name="balance" value="0">
<param name="currentPosition" value="0">
<param name="defaultFrame" value="">
<param name="playCount" value="1">
<param name="autoStart" value="-1">
<param name="currentMarker" value="0">
<param name="invokeURLs" value="0">
<param name="baseURL" value="">
<param name="volume" value="100">
<param name="mute" value="0">
<param name="uiMode" value="none">
<param name="stretchToFit" value="-1">
<param name="windowlessVideo" value="-1">
<param name="enabled" value="0">
<param name="enableContextMenu" value="-1">
<param name="fullScreen" value="-1">
<param name="SAMIStyle" value="">
<param name="SAMILang" value="">
<param name="SAMIFilename" value="">
<param name="captioningID" value="">
<param name="enableErrorDialogs" value="0">
</object>
<%
end if
end if
end if
%>
</body>
</html>

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×