Connecting Tech Pros Worldwide Forums | Help | Site Map

problem in playing the selected video in the embedded quicktime player

Newbie
 
Join Date: Mar 2008
Posts: 2
#1: Mar 12 '08
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:

Expand|Select|Wrap|Line Numbers
  1.  
  2. if($ext=="mov"){
  3.  
  4. 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'> 
  5.                    <param name=src value='$getVideoPath'>
  6.                    <param name='autohref' value='true'>
  7.                    <param name='controller' value='true'>
  8.                    <param name='href' value='$getVideoPath'>
  9.                    <param name='target' value='quicktimeplayer'>
  10.                    <embed src='$getVideoPath' type='image/x-quicktime' width=320 height=240 autohref='true' controller='true' href='$getVideoPath' target='quicktimeplayer'>
  11.                    </embed>
  12.                    </object>";
  13.  
  14.  
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.

Markus's Avatar
Moderator
 
Join Date: Jun 2007
Location: York, England, with wolves.
Posts: 4,938
#2: Mar 15 '08

re: problem in playing the selected video in the embedded quicktime player


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:

Expand|Select|Wrap|Line Numbers
  1.  
  2. if($ext=="mov"){
  3.  
  4. 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'> 
  5.                    <param name=src value='$getVideoPath'>
  6.                    <param name='autohref' value='true'>
  7.                    <param name='controller' value='true'>
  8.                    <param name='href' value='$getVideoPath'>
  9.                    <param name='target' value='quicktimeplayer'>
  10.                    <embed src='$getVideoPath' type='image/x-quicktime' width=320 height=240 autohref='true' controller='true' href='$getVideoPath' target='quicktimeplayer'>
  11.                    </embed>
  12.                    </object>";
  13.  
  14.  
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.
Reply