whistler Posted December 30, 2006 Share Posted December 30, 2006 I'de like to have a movie .wmv file embedded into a news article. Specifically, in the extended text area. So when a user logs onto my site they can read the latest news then click 'read more' and when that extended news page comes up, the windows media player will be embedded in the page and play the movie. Any idea's ... I've tried allowing the embed tag in my config.php file but no success Thanks Link to comment https://forums.phpfreaks.com/topic/32274-embedded-video-in-extended-news/ Share on other sites More sharing options...
mainewoods Posted December 30, 2006 Share Posted December 30, 2006 I've never embedded the media player but it probably works the same as embedding a flash video using the OBJECT tag. Youtube uses this tag to play the flash video embedded:[code]<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/qtZELe-iTLI"><param name="wmode" value="transparent"><embed src="http://www.youtube.com/v/qtZELe-iTLI" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>[/code]--you'll have to figure out what object tag settings to use for windows media player.--write the url of the actual video to play into the object tag dynamically at run time using info from php, like this:[code]<?php echo '<embed src="' . $theMediaURL . '" type="**find wm setting for this**" . 'wmode="transparent" width="425" height="350"></embed>';?>[/code] Link to comment https://forums.phpfreaks.com/topic/32274-embedded-video-in-extended-news/#findComment-149878 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.