Jump to content

using AJAX and youtube videos


caedo

Recommended Posts

Hi,

 

 

I'm programming a module that works like youtube. You have a player object where the video is played and a list of videos.

I'm using AJAX to change the videos dynamically when you click on the image. Right now I'm using Prototype.

The problem is that it does'nt changes the video, so I think that the new player is not being loaded.

 

This is the code I have:

 

echo '<object width="625" height="350">'.

'<param name="movie" value="'.$_GET['url'].'"></param>'.

  '<embed src="'.$_GET['url'].'" type="'.$_GET['type'].'" width="425" height="350">'.

  '</embed>'.

'</object>';

 

 

I thought that only echoing the HTML  tags with the right parameters would make it. Do you have any idea of how to do it?

 

 

thanks in advance

 

caedo

Link to comment
https://forums.phpfreaks.com/topic/114304-using-ajax-and-youtube-videos/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.