PDA

View Full Version : embed MediaPlayer


masoal
02-14-2005, 03:52 PM
Hi all,
I'm trying to embed different MediaPlayer objects into the same page. I've tried to put 2 objects and the result is that the first MediaPlayer plays both videos (mixing them or something like that) and the second one is just a black box.

Is it possible to play different "mpg"s at the same time in IE6?

Crake
02-14-2005, 07:53 PM
http://cit.ucsf.edu/embedmedia/step1.php

:thumbsup:

masoal
02-15-2005, 06:20 AM
Ok, that's the code to embed one media player to show one video. But what I meant is that I want to play 2 different videos at the same time and in the same page.
It should be like copy & paste ... but the result is not what I expected :eek:: only one media player is showing a mixture of both videos and the other one is just a black box.

_Aerospace_Eng_
02-15-2005, 06:46 AM
got link?

masoal
02-15-2005, 10:00 AM
At this moment it's a local page, but the code is:

<html>
<body>
<!-- begin of first embedded WindowsMedia file... -->
<table border='0' cellpadding='0' align="left">
<tr><td>
<OBJECT id='mediaPlayer1' width="320" height="240"
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="MOV02129.MPG">
<param name='autoStart' value="true">
<param name='showControls' value="false">
<param name='loop' value="false">
<EMBED type='application/x-mplayer2'
pluginspage='http://microsoft.com/windows/mediaplayer/en/download/'
id='mediaPlayer1' name='mediaPlayer1'
showcontrols="false" width="320" height="240"
src="MOV02129.MPG" autostart="true" designtimesp='5311' loop="false">
</EMBED>
</OBJECT>
</td></tr>
</table>
<!-- ...end of first embedded WindowsMedia file -->
<!-- begin of second embedded WindowsMedia file... -->
<table border='0' cellpadding='0' align="left">
<tr><td>
<OBJECT id='mediaPlayer2' width="320" height="240"
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="MOV00742.MPG">
<param name='autoStart' value="true">
<param name='showControls' value="false">
<param name='loop' value="false">
<EMBED type='application/x-mplayer2'
pluginspage='http://microsoft.com/windows/mediaplayer/en/download/'
id='mediaPlayer2' name='mediaPlayer2'
showcontrols="false" width="320" height="240"
src="MOV00742.MPG" autostart="true" designtimesp='5311' loop="false">
</EMBED>
</OBJECT>
</td></tr>
</table>
<!-- ...end of second embedded WindowsMedia file -->

</body>
</html>

masoal
02-16-2005, 06:22 AM
Finally I've found the answer. The problem is with the MediaPlayer version: I've tested the version 9.00 and all works fine... I was working with MediaPlayer 10...