|
|
|
Forum Member
Group: Forum Members
Last Login: 11/20/2007 2:21:39 PM
Posts: 2,
Visits: 6
|
|
| We recieve RSS feeds from the AP Online Video Network for each our sites are trying to configure our settings in the newsgator widget to display the attached thumbnail and play the video clip in a pop-up player within the widget. The code we normally use for displaying the thumbnail and play the video/podcast is not cooperating with these type RSS feeds. RSS feed example from AP OVN with Site ID: http://video.ap.org/s/RSS.ashx?mk=en-ap&ns=ENAP_AP_Gallery&tag=editorsall&title=AP%20Top%20Video&p=201222 The template code we are using is: {if LoadScript("http://www.clickcaster.com/plugin_assets/clickcaster_engine/javascripts/create_player.js", "window.create_player != null") && LoadScript(NGBaseUrl + "NGScripts/BuzzTemplates/buzzFooter.js", "window.returnBuzzFooter != null") && LoadScript(NGBaseUrl + "NGScripts/BuzzTemplates/videoPlayer.js", "window.returnVideoPlayer != null") && LoadScript(NGBaseUrl + "NGScripts/BuzzTemplates/adRotator.js", "window.returnAdRotator != null") } <div class="ng_buzzContainer ng_simpleList"> {for Post in Data} <div style="padding:2px; border-top:1px solid #eeeeee;" class="ng_post"> <table cellspacing="0" cellpading="0" width="97%" class="ng_buzz_table"> <tr> <td> <a href="${Post.HtmlUrl|html}" onclick="${AttentionClickJS(Post)}" class="ng_postTitle" target="_blank" id="post_title_${Post.PostId}"> ${Post.Title|default:"(no title)"} </a> <br /> <span class="ng_postInfo"> Published ${Post.PubDate|timeSince} ${% (Post.FeedName != '' ? 'by ' + Post.FeedName : '') %} </span> </td> <td align="right" valign="top" nowrap> {if Post.MediaRSS && Post.MediaRSS.Contents[0]} <a href="void(0)" onclick="populateVideoHolder('${Post.MediaRSS.Contents[0].Url|js}', '${Post.Title|js}', '${Post.HtmlUrl|js}', event, ${BuzzObjJS}, ${Post.PostId});" class="ng_buzz_playLink"> Play video </a> {elseif Post.EnclosureUrl} <a href="void(0)" onclick="populateVideoHolder('${Post.EnclosureUrl|js}', '${Post.Title|js}', '${Post.HtmlUrl|js}', event, ${BuzzObjJS}, ${Post.PostId});" class="ng_buzz_playLink"> Play video </a> {/if} </td> </tr> <tr> {if (Post.MediaRSS && Post.MediaRSS.Thumbnail && (Post.MediaRSS.Description && Post.MediaRSS.Description.Description))} <td class="ng_postDescription" colspan="2"><img src="${Post.MediaRSS.Thumbnail.Url|html}"></td> {else} <td class="ng_postDescription" colspan="2" id="post_description_${Post.PostId}">${Post.Description}</td> {/if} </tr> <tr> <td colspan="2"> ${% RenderToolbar(Post) %} </td> </tr> </table> </div> {forelse} No posts found. {/for} </div> ${returnBuzzFooter(BuzzId,BuzzObj.apiToken,BuzzObj,_CONTEXT)} ${returnVideoPlayer(BuzzObj,_CONTEXT)} ${returnAdRotator(BuzzObj,_CONTEXT)} {/if}
Any help or tips would be greatly appreciated.
thanks,
Alex Marcelewski
Multimedia Producer
Media General Interactive
|
|
|
|
|
NewsGator
Group: Administrators
Last Login: 6/29/2008 10:04:05 PM
Posts: 38,
Visits: 143
|
|
Alex,
The problem with getting a pop-up video player to work for this widget lies within the feed itself, and not in the widget code. The pop-up style video players require that the rss includes the video itself embeded in some format.
If you look at the xml behind the feed you are using (http://video.ap.org/s/RSS.ashx?mk=en-ap&ns=ENAP_AP_Gallery&tag=editorsall&title=AP%20Top%20Video&p=201222), you will see that all they provide is a link to navigate you back to their own aspx page where the video plays.
In your post you made the statement: "The code we normally use for displaying the thumbnail and play the video/podcast is not cooperating with these type RSS feeds."
The type of feed that the standard widget code does this best with is a feed that uses media rss. Look at the xml behind this feed as an example: http://youtube.com/rss/global/recently_featured.rss. Notice the "media" named tags.
If you can find feeds using the media rss format that have good content, the video player should just work. If you find any other feeds with the videos embeded in the xml in any other manner, as long as there is a url to a file with an extension like .flv, .swf, .mov, .avi, etc., then there is likely a way that the code can be tweaked to play it.
Hope this helps.
Regards,
Dan Borrego
NewsGator Technologies,
Technical Support, Syndication Services
|
|
|
|
|
Forum Member
Group: Forum Members
Last Login: 5/16/2008 1:35:06 PM
Posts: 1,
Visits: 1
|
|
I'm trying to pull a feed that has embedded video too. I'm not sure I understand what I need to do to get it to work. Could you explain in simpler terms?
Here is where I'm trying to pull the videos:
http://www.am760.net/pages/mario_solis-marich.html
|
|
|
|
|
NewsGator
Group: NewsGator Staff
Last Login: Yesterday @ 4:24:35 PM
Posts: 18,
Visits: 61
|
|
| Hi, The site you linked to doesn't actually have any feeds on it, but there are a couple NewsGator widgets on there that are using feeds that contain Podcasts, or MP3's. Are you wanting to create widgets that play podcasts from this site? If you are looking for embedded videos, it depends entirely on the RSS feed (like Dan mentioned above). The YouTube feed he provided, http://youtube.com/rss/global/recently_featured.rss, when viewed in a browser, will show that it has .swf files associated with each post. As long as the feed has legitimate media files in it, they can be played in a widget. You'll know immediately if this is the case: feeds with valid video files will automatically include a "Play Video" link in the widget. --
Jenny Blumberg
Syndication Services Developer Support
NewsGator Technologies, Inc.
|
|
|
|