Jump to content

Embedded video in extended news


whistler

Recommended Posts

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

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]

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.