Jump to content

Embed video


nickjonnes

Recommended Posts

hey all,

i am trying to embed a video from a news site. i am getting the link from an atom feed then trying to add it into an embed video code.

the embeding code looks like this:

 

<?php
$xml = simplexml_load_file('http://video.news.com.au/feed.atom');
//echo "Link - {$xml->entry[0]->link->attributes()->href}<br>";
$link = "{$xml->entry[0]->link->attributes()->href}";
echo "{$link}";
?>
<body>
</body>
</html>
<iframe src ="<?php echo $link; ?>?player=narrow" width="330" height="335" frameborder="0" marginheight="0" marginwidth="0" scrolling="no"><p><a href="<?php echo $link; ?>"></a></p></iframe>

 

i tried that and it shows the top left of the actuall website not the embeded video like it should the embed video source looks like this:

<iframe src ="http://video.news.com.au/embed/1969930780/Radical-reforms-for-cattle-industry?player=narrow" width="330" height="335" frameborder="0" marginheight="0" marginwidth="0" scrolling="no"><p><a href="http://video.news.com.au/1969930780/Radical-reforms-for-cattle-industry">VIDEO: 'Radical reforms' for cattle industry</a></p></iframe>

hope someone can help work out whats going on

cheers, nick

Link to comment
https://forums.phpfreaks.com/topic/238483-embed-video/
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.