473,387 Members | 1,890 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

playing movie file

chelvan
90
hi all

Expand|Select|Wrap|Line Numbers
  1.  
  2.                     <! -- Google Video HTML Code -- >
  3.                     <embed style='width:400px; height:326px;' id='VideoPlayback' 
  4.                     align='middle' type='application/x-shockwave-flash' 
  5.                     src='http://video.google.com/googleplayer.swf?videoUrl=player'
  6.                     allowScriptAccess='sameDomain' 
  7.                     quality='best' bgcolor='#ffffff' scale='noScale' 
  8.                     wmode='window' salign='TL' FlashVars='playerMode=embedded'>
  9.                     </embed>
  10.                     <! -- End of Google Video HTML Code -->
  11.  
  12.  
the above code for display a googleplayer on my site. i collect the src by query from database, & i stored them into a combo box.

that follows bellow

Expand|Select|Wrap|Line Numbers
  1. <select name='player'><option>Select</option>
  2. //while loop start 
  3. <option value='myvids/$al_pa[$al_c]'>$al_uf[$al_c]</option>
  4. //while end
  5. </select>
  6.  

now i want to play the selected movie file on the combobox. but it couldn't work. is any errors on the code?


thanks
chel-1
Oct 3 '08 #1
4 1521
Markus
6,050 Expert 4TB
How are you passing the select box value? POST or GET?
Oct 3 '08 #2
Atli
5,058 Expert 4TB
now i want to play the selected movie file on the combobox. but it couldn't work. is any errors on the code?
Well yes. For one, that isn't PHP code. It's HTML with a couple of C style single line comments and two PHP variables that aren't inside a PHP block.

If that is your actual code, then there is your problem.
If it isn't, we would need to see the actual code to be able to help.
Oct 4 '08 #3
chelvan
90
hi
sorry for my late. here its my code.

Expand|Select|Wrap|Line Numbers
  1. if ($att=="Video"){
  2.  
  3.             $query2=" SELECT * FROM albumvideo where albumid='$a_ref'";
  4.             $result2=mysql_query($query2);
  5.             echo mysql_error();
  6.             $nume=mysql_num_rows($result2);//break 
  7.  
  8.             echo "<br><br><select name='player'  onchange='PlayIt(this.value)'><option>Select</option>";
  9.                 $sql_selobj=mysql_query("SELECT * FROM albumvideo WHERE albumid='$a_ref' ");//limit $eu, $limit
  10.                 while($row=mysql_fetch_array($sql_selobj)){
  11.                     $obj_num=$row['objectno'];
  12.                     $al_id[$al_c]=$row['albumid'];
  13.                     $al_des[$al_c]=$row['description'];
  14.                     $al_name[$al_c]=$row['name'];
  15.                     $al_pa[$al_c]=$row['path'];
  16.                     $al_uf[$al_c]=$row['userfile'];
  17.  
  18.                     echo"<option value='myvids/$al_pa[$al_c]'>$al_uf[$al_c]</option>";
  19.  
  20.  
  21.  
  22.  
  23.  
  24.                     $al_c=$al_c+1;
  25.                     }
  26.                     echo"</select>";
  27.                     echo"<br><br><table align='center' height='300'><tr><td valign='middle'>";
  28.  
  29.                     echo<! -- Google Video HTML Code -- >
  30.                     <embed style='width:400px; height:326px;' id='VideoPlayback' 
  31.                     align='middle' type='application/x-shockwave-flash' 
  32.                     src='http://video.google.com/googleplayer.swf?videoUrl=player'
  33.                     allowScriptAccess='sameDomain' 
  34.                     quality='best' bgcolor='#ffffff' scale='noScale' 
  35.                     wmode='window' salign='TL' FlashVars='playerMode=embedded'>
  36.                     </embed>
  37.                     <! -- End of Google Video HTML Code -->";
  38.  
is any code for replace this one.

thanks
chel-1
Oct 7 '08 #4
pbmods
5,821 Expert 4TB
Heya, chel-1.

Is your script generating any Javascript errors? Can you verify that PlayIt() is getting called?
Oct 9 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: phoenix | last post by:
Hello, I'm not certain which group is best to post so I'll keep it to the general one. I have a yuv-movie-file (4:2:0) which I want to play using C#. I know that DirectX doens't support the...
2
by: Frances Del Rio | last post by:
pls how do I detect if .swf movie is playing or has stopped? .swf is in a pop-up, I would like to trigger a window.close() once Flash movie has stopped playing.. (pls don't lecture me about...
1
by: Lyndon | last post by:
Hi guys, I've got a problem... I'm developing a webpage on my computer and I can't get the links to my MPEG movies to work. I want them to launch in a Windows Media Player. This is my...
1
by: Jignesh Desai | last post by:
Playing Flash Files in ASP.NET Copy the HTML code below and paste it into your HTML<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"codebase="http://downloa...
14
by: askMe | last post by:
I developed a web page that plays an mpg using the simple embed tag. When the page loads, the video starts, but then stops after a few seconds. I use the embed tag because I want the user's...
0
by: rrowles2000 | last post by:
Hi, I'm trying to create a class (see code below) that will give me direct control over a flash component, and still have it as a form control. To do this I'm retrieving data from the database...
1
by: majestik | last post by:
Question, can I see an event in Javascript that tells me a video starts playing using the <embed src="file.wmv>. I stream the video, but there is a wait time and wanted to pop up a message telling...
0
by: universe | last post by:
I am using ASP.net 2.0 to develop a web application in which I am playing a video file using "active movie player (media player)". How do I know that the video file playing is completed from ASP.Net...
2
by: aditya1601 | last post by:
Hi all, I have added a wmp control onto my form. and put the following code for it. Dim oMovie As WMPLib.IWMPMedia oMovie = wmpPreview.newMedia("H:\Movie.avi") ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.