Embeding video in Rss Feed??

Discussion in 'HTML & Website Design' started by mike323, Nov 29, 2006.

  1. #1
    Does anyone know how I can embed the video below into an rss feed and have the output display the video player? :confused:


    
    <embed FlashVars='config=http://www.comedycentral.com/motherload/xml/data_synd.jhtml?vid=78731%26myspace=false' src='http://www.comedycentral.com/motherload/syndicated_player/index.jhtml' quality='high' bgcolor='#006699' width='340' height='325' name='comedy_player' align='middle' allowScriptAccess='always' allownetworking='external' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'></embed>
    Code (markup):
    I'm trying to place the video on multiple pages using rss and then, when I swap the video on the rss page, it will change on all pages. That way I don't have to replace the video on all pages one at a time.
    Thank you.
     
    mike323, Nov 29, 2006 IP
  2. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hold on, let me get this straight. You're trying to take an RSS feed with a video embedded into it, and then parse it into HTML code so you can embed it into a traditional Web page?
     
    Dan Schulz, Feb 11, 2007 IP
  3. mike323

    mike323 Well-Known Member

    Messages:
    1,594
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    160
    #3

    Well, I'm not actually "trying" to do that... I've done it... with YouTube videos.... Now I just want to find out how to do it with Comedy Centrals "Mother Load" videos... CC's videos are coded differently than YT's and it's throwing me...Any ideas? Thanks. :)

    P.S. This is the .xml page I use (reference) to embed the videos on to all my site's pages.

    Then I take that link and go to www.rss-info.com and use their online parser. I paste the link into the box that reads "RSS URL:" and then I take the php output and paste it into all of my sites pages and viola! But again, that's with YouTube videos...I need to figure out how I can do that with Comedy Centrals "Mother Load" videos.
     
    mike323, Feb 11, 2007 IP
  4. 30k Challenge

    30k Challenge Peon

    Messages:
    1,188
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I'm pretty sure you are making this much harder than it needs to be... sec
     
    30k Challenge, Feb 11, 2007 IP
  5. 30k Challenge

    30k Challenge Peon

    Messages:
    1,188
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    0
    #5
    The video goes into a feed fine, it's that site you are using to make your cut and paste code that is eating everything.

    Cheers
     
    30k Challenge, Feb 11, 2007 IP
  6. mike323

    mike323 Well-Known Member

    Messages:
    1,594
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    160
    #6
    Do you know a simple way around it? Thanks.
     
    mike323, Feb 18, 2007 IP
  7. 30k Challenge

    30k Challenge Peon

    Messages:
    1,188
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    0
    #7
    If you are adding the videos by hand PM me. If not I have no idea at all.

    Cheers
     
    30k Challenge, Feb 18, 2007 IP
  8. MWilson

    MWilson Peon

    Messages:
    109
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #8
    <embed FlashVars='config=http://www.comedycentral.com/motherload/xml/data_synd.jhtml?vid=78731%26myspace=false' src='http://www.comedycentral.com/motherload/syndicated_player/index.jhtml' quality='high' bgcolor='#006699' width='340' height='325' name='comedy_player' align='middle' allowScriptAccess='always' allownetworking='external' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'></embed>

    The problem is when you try to view the xml in IE or whatever it tries to parse it. The problem is that the parser reads each tag <> and creates an error when it doesnt find a close tag before any other tag. Simply add the embedde code into the description of the RSS Item and replace the < and > with the proper html encodes like so:

    &lt;embed FlashVars='config=http://www.comedycentral.com/motherload/xml/data_synd.jhtml?vid=78731%26myspace=false' src='http://www.comedycentral.com/motherload/syndicated_player/index.jhtml' quality='high' bgcolor='#006699' width='340' height='325' name='comedy_player' align='middle' allowScriptAccess='always' allownetworking='external' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'&gt;&lt;/embed&gt;

    Hope this helps,
    Mike
     
    MWilson, Feb 20, 2007 IP
  9. MWilson

    MWilson Peon

    Messages:
    109
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #9
    On another note,
    If your server has php, you can just make a file called video.php and include that file whereever you want the video to appear.
    <html>
    <head>
    <title></title>
    </head>
    <body>
    <center>Video of the day<br>
    <? include ('video.php') ?>
    </center>
    </body>
    </html>
     
    MWilson, Feb 20, 2007 IP
  10. mike323

    mike323 Well-Known Member

    Messages:
    1,594
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    160
    #10

    My server has php.... can you show me exactly how to do this second suggestion? Thank you. I tried your first suggestion but it didn't work as I'm unsure what to remove from the xml page to get it to work. The more simpler the better. ;)
     
    mike323, Mar 3, 2007 IP