Quote:
Originally Posted by josephChiaWY
Hi all,
Recently, i have met a problem in playing the selected video in the embedded quicktime player. I am creating a video gallery for people to view their .mov file on quicktime player. Below are parts of my code:
-
-
if($ext=="mov"){
-
-
echo "<object classid='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B' width=320 height=240 standby='Data is loading...' codebase='http://www.apple.com/qtactivex/qtplugin.cab'>
-
<param name=src value='$getVideoPath'>
-
<param name='autohref' value='true'>
-
<param name='controller' value='true'>
-
<param name='href' value='$getVideoPath'>
-
<param name='target' value='quicktimeplayer'>
-
<embed src='$getVideoPath' type='image/x-quicktime' width=320 height=240 autohref='true' controller='true' href='$getVideoPath' target='quicktimeplayer'>
-
</embed>
-
</object>";
-
-
The output results is a Quicktime logo being shown and none of the video selected is shown
*Note: $getVideoPath variable is the path where the user's video are stored.
$ext is the file name extension. So far only my file that is .avi is working on windows media player.
What do you see when you look at the source code of the output data?
(the embed code - are the variables outputting properly?)
Regards.