Forum Discussion
buenafe
14 years agoVisitor
Belltown, ditto. Thanks. I've been pounding my head trying to understand how other channels did this. I'm trying to go to the next step. I'm trying to integrate your function to the simplevideoplayer.
I get a bug when running this. (I don't have Roku access while I type this message - I'll update this post later).
I did notice that the generated sdUrl variable seems to be correct because I can cut-and-paste the URL to a web-browser to test.
I do notice that the URL contains ampersands "&" . Do I need to replace these with "&" i nthe brightscript code?
Function displayVideo(args As Dynamic)
....
url = "http://youtu.be/nGeKSiCQkPw" ' The URL for the video
mp4Urls = getMP4Url (url) ' Get a list of all MP4 URLs
sdUrl = mp4Urls.sdUrl
....
'Swap the commented values below to play different video clips...
urls = [ sdUrl ]
qualities = ["SD"]
StreamFormat = "mp4"
....etc.
I get a bug when running this. (I don't have Roku access while I type this message - I'll update this post later).
I did notice that the generated sdUrl variable seems to be correct because I can cut-and-paste the URL to a web-browser to test.
I do notice that the URL contains ampersands "&" . Do I need to replace these with "&" i nthe brightscript code?