I would like some help on figuring out how to get started with using BrightScript. I have read both the Brightscript Reference Guide and the Object Reference Manual and I have not been able to get anything to work.
My file is called autorun.brs just like it says to do in the user guide.
I have then also copied a sample of code to just play a video in a zone.
The following is what I am using:
debug = true v=CreateObject("roVideoMode") v.SetMode("1920x1080x60i") EnableZoneSupport(true) r=CreateObject("roRectangle", 60, 60, 1386, 800) v=CreateObject("roVideoPlayer") v.SetRectangle(r) v.SetLoopMode(1) v.SetViewMode(2) v.SetAudioOutput(2) v.PlayFile("Amazon_1080.mpg") I am using scripting because eventually I will need to accomplish things playlists won't allow. I have just chosen to start small to since even at this basic stage I am having problems.
And yes, I do have a video that I have called Amazon_1080.mpg.