Brightcove

Hi folks,

 

I'm writing a small channel to pull video from a website that uses Brightcove. Are there any channels that use Brightcove that someone could point me in the direction of to use as an example?

 

I know there is an URL service already for Brightcove. I've tested one video using http://localhost:32400/system/services/url/lookup?url= and it seems to work fine. I get xml info including an mp4 link. So I assume that I should be good to go from there. However, a couple of attempts at writing a very basic channel using either the tested link or the mp4 in the menu turns up an error. However, when I use a link to a VICE video (which also has an URL service) in the same script, the channel works fine. So I suspect my problems are Brightcove related.

 

Any help would be appreciated!

AFAIK, most of the providers that had Plex channels using brightcove have moved to other CDNs. I don't think that there's much of that code still around. It might exist in the history for one or more of the git repos but likely in an old version of the plugin framework. I can't think of any good suggestions off the top of my head.

What happens when you're using http://localhost:32400/system/services/url/lookup?url= with a URL that is not directly a BrightCove URL, is that the BrightCove video URL is first found by the Fallback URL Service. Then the BrightCove service is used to get all the information.

Channels are more restricted (sandboxed) and cannot work like this. You have to find the BrightCove URL in your channel code first, then the URL Service can work with that. The format of such a BrightCove URL can be seen here: https://github.com/plexinc-plugins/Services.bundle/blob/master/Contents/Service%20Sets/com.plexapp.plugins.brightcove/ServiceInfo.plist

Thank you Sander and Mike!

I had grabbed a link with the following format http://link.brightcove.com/services/player/bcpid123?bckey=somelongstring&bctid=123 from the site (TVO.org) and popped that in a browser, saw that it worked, and assumed that it would be fine to use with my channel. But that link was causing the error(s).

Once I went to the format of http://c.brightcove.com/services/viewer/federated_f9?isVid=1&isUI=1&videoId=123&playerID=123&playerKey=somelongstring&domain=embed&dynamicStreaming=true, the hard coded channel worked fine on my Chrome browser, Roku, and ATV.

I'm kind of busy for the next couple of days, but after that I think I'll see if I can take the next step and write a proper channel for TVO.

Thanks again!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.