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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.