tvOS Playing a Video

So I’d like to play a Video in an Apple TV App.

I need to look into Player from the TVJS Lib.

https://developer.apple.com/library/prerelease/tvos/documentation/TVMLJS/Reference/TVJSPlayer_Ref/index.html#//apple_ref/javascript/cl/Player

Forum

https://forums.developer.apple.com/thread/17338?sr=stream&ru=377

https://forums.developer.apple.com/message/52011#52011

https://forums.developer.apple.com/message/53126#53126
I can play a Video using AVPlayer but need to look into the controls

I’d prefer to create the view using the TVML as the ‘Compilation.xml’ seems to be the perfect fit for it.

Finally found out that the videos files can’t be running under python.

If you change the URL to a file on the web it works fine.

http://stackoverflow.com/questions/32518673/setting-up-apple-tv-video-javascript

I think you’re using the Python SimpleHTTPServer for your test, it did not worked for video streaming, but if you use Apache or for example this file directly from apple “http://trailers.apple.com/movies/focus_features/9/9-clip_480p.mov” it will work.
user2418630

This is correct. I think video playback requires that the server supports, among other things, byte-range requests. –  lemnar

Blogs

http://martinnormark.com/playing-video-on-apple-tv-with-tvos/

Advertisements
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: