New York Design & Development Forums  

Go Back   New York Design & Development Forums > Development > Website Programming
Connect with Facebook

Notices

Reply
 
LinkBack Thread Tools
Old 10-05-2006, 08:36 AM   #1 (permalink)
Leo
Junior Member
Casual Browser
 
Leo's Avatar
 
Join Date: Mar 2003
Age: 27
Posts: 20
Leo is on a distinguished road
Send a message via MSN to Leo
Post Need help on embedded video dynamic size

I want to have the video player page I have get the frame size from the video clip so if I have multiple showreels at different frame size and apsect ratio they will diplay correctly.

The PHP code on the video player page is;

PHP Code:
<?php 
              
if ((isset($tb)) && (isset($id)) && (isset($quality))) {
                 
                if (
$tb == 'showreel')    { $tabla 'tbshowreel' ; }
                if (
$tb == 'pastproject') { $tabla 'tbpastproduction' ; }
                
                if (
$quality == 'bb') { 
                  
$campo 'broadband'
                  
$size "width='320' height='240'";
                }
                
                if (
$quality == 'du') { 
                    
$campo 'dialup';
                    
$size "width='176' height='144'";                    
                }
                
                
$result db_query("SELECT * FROM $tabla WHERE id=$id");
                
$filasV mysql_fetch_array($result);
                
                
$videofile='../videos/'.$filasV[$campo];
              
              }
            
            
?>

<?php 
                         
// Windows Media Player
                        
if ($filasV['id_media']==2) { ?>
                        
                        <OBJECT ID="MediaPlayer" CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" <?php echo $size ?> STANDBY="Loading Windows Media Player components..."  TYPE="application/x-oleobject">
                          <PARAM NAME="FileName" VALUE="<?php echo $videofile?>">   
                          <param name="TransparentAtStart" value="True">
                          <param name="ShowControls" value="1">
                          <param name="ShowDisplay" value="0">
                          <param name="ShowBuffer" value="1">
                          <param name="ShowStatusBar" value="1">
                          <param name="AutoSize" value="1">                       
                          <EMBED TYPE="application/x-mplayer2" SRC="<?php echo $videofile?><?php echo $size ?> NAME="MediaPlayer"></EMBED>
                        </OBJECT>
                        
                        <?php }  ?>
                        
                        <?php 
                         
// Real Player
                        
if ($filasV['id_media']==3) { ?>
                        
                          <OBJECT id="RealPlayer" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" <?php echo $size ?> standby="Loading RealPlayer Components..." type="audio/x-pn-realaudio">
                            <PARAM name="src" value="<?php echo $videofile?>">
                            <PARAM name="pluginspage" value="http://www.real.com/freeplayer/?rppr=downloadcom">
                            <PARAM name="console" value="video1">
                            <PARAM name="showcontrols" value="1">
                            <PARAM name="controls" value="ALL">
                            <PARAM name="autostart" value="true"> 
                            <param name="AutoSize" value="1">                            
                            <EMBED SRC="<?php echo $videofile?><?php echo $size ?> AUTOSTART="true" NOJAVA="true" CONTROLS="ALL" CONSOLE="video1">
                         </OBJECT>                         
                        
                        <?php }  ?>
                        
                        <?php 
                         
// Quicktime
                        
if ($filasV['id_media']==4) { ?>
                        
                         <object ID="QuickTime" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" <?php echo $size ?> standby="Loading QuickTime Components..." codebase="http://www.apple.com/qtactivex/qtplugin.cab">
                           <param name="SRC" value="<?php echo $videofile?>">
                           <param name="AUTOPLAY" value="true">
                           <param name="AutoSize" value="1">  
                           <param name="CONTROLLER" value="TRUE">
                           <param name="TYPE" value="video/quicktime">
                           <param name="PLUGINSPAGE" value="http://www.apple.com/quicktime/download/indext.html">
                           <param name="target" value="myself">
                           <embed src="<?php echo $videofile?><?php echo $size ?> target="myself" controller="true" type="video/quicktime" autoplay="true" pluginspage="http://www.apple.com/quicktime/download/indext.html"></embed> 
                          </object>
                        
                        <?php }  ?>
I took out the BB Broadband fixed size as deleted the whole varible and Windows Media Player resizes fine, just seems the Quicktime then is really small like 30x50 pixels and does not re-size the clip properties dynamic. If someone knows what I am doing wrong or the correct tag as i think the code for the Quicktime might be causing the probelm.

If you could let me know that would be great thanks,

Leo

Last edited by danielmichel; 10-26-2006 at 09:21 AM.
Leo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Google Bookmark this Post!Blink this Post!
Reply With Quote
Old 10-16-2006, 07:25 AM   #2 (permalink)
Administrator
Disciple
 
danielmichel's Avatar
 
Join Date: Feb 2003
Age: 29
Posts: 727
Images: 16
danielmichel is a glorious beacon of lightdanielmichel is a glorious beacon of lightdanielmichel is a glorious beacon of light
Send a message via AIM to danielmichel Send a message via MSN to danielmichel Send a message via Yahoo to danielmichel Send a message via Skype™ to danielmichel
Default

Its unfortunate to see that no one has responded to this post yet. It is also unfortunate that this is not my area of expertise. Sorry old friend. – If you still need help with it, I will ask around.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
- A list of resources for 3D Developers

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
- A list of resources for design in motion with Adobe After Effects

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
- Usefully resources for freelance web developers

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
- Tips and discussion about search engine optimization

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
- Tutorials submitted by ny-dev members
danielmichel is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Google Bookmark this Post!Blink this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Solutions to make flash video player consecutively play next flash video stephenz Multimedia Development 0 08-12-2009 05:58 AM
Dynamic IP Locking: A Poor Mans Multi-factor Authentication Taz Tutorials 10 01-12-2007 08:52 PM
Dynamic web design. Jacer17 Website Programming 14 05-12-2006 05:45 PM


All times are GMT -4. The time now is 01:03 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13