Reply
Contributor
ashlesha
Posts: 15
Registered: ‎02-18-2010
0 Kudos

Get view count using rss

Hi Developers,

 

I was searching, if I can get view count using rss output

http://support.brightcove.com/en/docs/brightcove-rss-extension

I was trying to use this api using output as rss

http://api.brightcove.com/services/library?token=<token>&command=find_all_videos&output=RSS

 

but I get

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/" xmlns:bc="http://www.brightcove.tv/link" xmlns:dcterms="http://purl.org/dc/terms/">

    <channel>

        <title> </title>

        <link> </link>

        <description/>

        <copyright> </copyright>

        <lastBuildDate> </lastBuildDate>

        <generator> </generator>

        <item>

            <title> </title>

            <link/>

            <description</description>

            <guid> </guid>

            <pubDate>Wed</pubDate>

            <dcterms:valid/>

        </item>

</channel>

</rss>

 

What I am really looking for is how to get rss extention.

 

Thanks

Ashlesha

 

 

Brightcove Team
BC-ChrisTierney
Posts: 162
Registered: ‎12-12-2008
0 Kudos

Re: Get view count using rss

Hi,

 

To get the Brightcove extensions, you need to request MRSS, not RSS:

 

output=MRSS

 

However, my own testing doesn't show the "viewcount" element even with the extension---I suspect that document might be out of date. I'm going to do a little digging and I'll post back here with my findings.

 

hope that helps,

.chris

Brightcove Team
BC-ChrisTierney
Posts: 162
Registered: ‎12-12-2008
0 Kudos

Re: Get view count using rss

As far as I have been able to find out, that document is just incorrect---view count is not currently available from the media APIs in MRSS.  You can, however, get this data in the JSON format, as "playsTotal" and "playsTrailingWeek".

 

hope that helps,

.chris