2012-11-24, 10:47 AM
I find myself with some (rare) free time, so I thought I'd play around with a bit of development and look at trying to knock together a simple movies trailers plugin. On the absence of suggestions for a better place to grab trailers, I was looking at the Apple iTunes rss feed here: http://trailers.apple.com/trailers/home/...t_720p.xml
Although this has links to the video files, Apple won't let you direct download them unless it thinks you're coming from QuickTime. So doing this, for example, won't work:
There is a simple workaround, however, which is to change the user-agent, eg with wget:
Is there any way you could make such functionality available via the NPVR API? It would be much nicer to have the videos stream on the fly rather than have to download them first.
Iain
Although this has links to the video files, Apple won't let you direct download them unless it thinks you're coming from QuickTime. So doing this, for example, won't work:
Code:
PluginHelperFactory.GetPluginHelper().PlayVideoFile("http://trailers.apple.com/movies/independent/holdyourbreath/holdyourbreath-tlr2_a720p.m4v");
There is a simple workaround, however, which is to change the user-agent, eg with wget:
Code:
wget -U QuickTime http://trailers.apple.com/movies/independent/holdyourbreath/holdyourbreath-tlr2_a720p.m4v
Is there any way you could make such functionality available via the NPVR API? It would be much nicer to have the videos stream on the fly rather than have to download them first.
Iain