Sending media content to your Roku TV using REST API

I have been using the Play on Roku channel in my Roku TV to send videos, audio to play from my iPhone using Shortcuts app. The documentation is kind of hard to find on the launch parameters for Play on Roku Channel (15985) API, so I put together this article with the information I found so far.

t (required)

Type of media you want to send to Roku.

a. `v` for video  
b. `a` for audio  
c. `p` for photo/image

u (required)

Full, html-encoded URL or media (e.g. video, photo, audio) to play.

k (required)

Full, html-encoded URL of image to display before launch of media, like a splash screen.

videoname (optional)

Name, including possible description, to be displayed during media startup.

videoformat (optional)

Format of video. I use only mp4, but I believe there are options for mp4, mkv, mov, and wmv.

videoresolution (optional)

Video resolution height (e.g. 1080).

framerate (optional)

Video frame rate (fps, e.g. 30)

a (optional)

Action – Known values are sta for start, sto for stop (optional)

Here’s an example usage for playing a video –

http://10.0.1.2:8060/input/15985?t=v&u=http%3A%2F%2Fcommondatastorage.googleapis.com%2Fgtv-videos-bucket%2Fsample%2FBigBuckBunny.mp4&k=(null)&videoFormat=mp4&videoName=BigBuck Bunny

Hope this helps if you are trying to send media to your Roku TV. Cheers!


Posted

in

,

by

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *