Forum Discussion

hmatar's avatar
hmatar
Visitor
8 years ago

hide player in case of error or buffering taking too much time.

Hello 
in  the function OnVideoPlayerStateChange (check Link below
https://github.com/rokudev/hero-grid-channel/blob/9a37a6e65b6814c7c016b6a01035e78fe75b1ecc/components/DetailsScreen/DetailsScreen.brs)
we hide the player in case of error  using ....
ifm.videoPlayer.state= "error"
....
when I tried to play a .ts video (live streaming), i got the error in eclipse console:
'Dot' Operator attempted with invalid BrightScript Component or interface reference. The progress-bar is visible and my Roku becomes unresponsive to the back button (to go back to the grid). To use the application I need to click on the home button then launch the application again. 
is it possible to avoid this? by simply hiding the player in case of error or buffering taking too much time. 
No RepliesBe the first to reply