Connecting Tech Pros Worldwide Help | Site Map

Embedded Media Player

Member
 
Join Date: May 2007
Posts: 42
#1: Oct 11 '07
I have this problem on my website and no matter what I have not been able to get over it,
it is really getting on my nervers.

it's a problem that only exists in non IE browsers.

the frame work of my website is php and lets say here is how the player is shown with very simple syntaxes:

[HTML]<OBJECT id="VIDEO" width="'.$x.'" height="'.($y+60).'" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" type="application/x-oleobject">
<param name="AutoStart" value="true">
<param name="uiMode" value="full">
<param name="URL" value="'.$src.'">
<embed type="application/x-mplayer2"
src="'.$src.'"
id="Player"
name="Player"
width="'.$x.'"
height="'.($y+60).'"
AutoStart="true"></embed>
</OBJECT>
[/HTML]

where $x and $y are the dimentions of the video being played,
and the $src is the video file,

now the problem is....,

the video files is being streamed through a php which checks the user session being logged in or not (through cookies / sessions), something like

videofile.php?fileid=xx


Now this works perfect in Internet Explorer, if the user is logged in , the movie starts playing,

But in non IE browser, eg FireFox, if the user is logged in and opened the file directly in the browser, everything is fine and the user is authenticated and download starts,
but if the embedded media player requests the file, it fails, it's like even though it is embedded inside FireFox, media player is still looking into sessions and cookies from Internet explorer, because the video starts playing in firefox when I also log in in Internet Explorer.

I have not been able to tell Embedded Windows Media Player in firefox to check the logged in status in firefox,

If somebody knows how I can fix this I really appreciate this, as I can't afford to not to stream my files through php and just put the direct links for the src.
Member
 
Join Date: May 2007
Posts: 42
#2: Oct 12 '07

re: Embedded Media Player


any commnets????? :(
drhowarddrfine's Avatar
Expert
 
Join Date: Sep 2006
Posts: 5,560
#3: Oct 12 '07

re: Embedded Media Player


Quote:

Originally Posted by xhunter

any commnets????? :(

You're ugly.......and I don't have an answer either. ;)
Markus's Avatar
Moderator
 
Join Date: Jun 2007
Location: York, England, with wolves.
Posts: 4,936
#4: Oct 13 '07

re: Embedded Media Player


Quote:

Originally Posted by drhowarddrfine

You're ugly.......and I don't have an answer either. ;)


Burnnnn haha.

And to the OP, don't be so pushy.

Ask the same question on a bunch of different DEV sites.

you wont get an answer immediately man.
Newbie
 
Join Date: Jun 2009
Posts: 3
#5: Jun 21 '09

re: Embedded Media Player


I have a Windows Media Player embedded and it plays a video file fine. What I would like to do is show only the "Title" or other text, and not have the Windows Media Player show until the 'title' is clicked on.
Here is the HTML I am using; so what should I change? Thanks for any answer.

<table border='0' cellpadding='0' align="center"><font size="8">Red Blanchard Says Hello!

<!-- begin embedded WindowsMedia file... -->
<table border='0' cellpadding='0' align="center">
<tr><td>
<OBJECT id='mediaPlayer' width="720" height="450"
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'>
<param name='fileName' value="webhello.wmv">
<param name='animationatStart' value='true'>
<param name='transparentatStart' value='false'>
<param name='autoStart' value="false">
<param name='showControls' value="true">
<param name='loop' value="false">
<EMBED type='application/x-mplayer2'
pluginspage='http://microsoft.com/windows/mediaplayer/en/download/'
id='mediaPlayer' name='mediaPlayer' displaysize='4' autosize='-1'
bgcolor='darkblue' showcontrols="true" showtracker='-1'
showdisplay='0' showstatusbar='-1' videoborder3d='-1' width="720" height="450"
src="webhello.wmv" autostart="false" designtimesp='5311' loop="false">
</EMBED>
</OBJECT>
</td></tr>
<!-- ...end embedded WindowsMedia file -->
Newbie
 
Join Date: Jun 2009
Posts: 3
#6: Jun 21 '09

re: Embedded Media Player


I forgot to add that I would not want to use the "transparent" option, because then you get a big blank spot until you turn on the player.
Newbie
 
Join Date: Jun 2009
Posts: 3
#7: Jun 25 '09

re: Embedded Media Player


Here I am again, and this time I learned about a "redirect" link, in the form of a "WVX" file, so I made one and had it point to my embedded video, but it woudnt work, but gave me this error message:
"The playlist cannot be opened because it is stored in a shared folder on another computer.
If possible, move the playlist to the playlists folder on your computer."
Anybody got any ideas, now? Thanks for listening
Reply