Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
zy856n
Visitor

video.observeField("streamInfo.measuredBItrate", "onFieldChange")

Following code didn't work for me, I wanted to receive call back only when streamBitrate changes

video.observeField("streamInfo.measuredBItrate", "onFieldChange")

I suspect DIY is the right solution.

-- Regards
0 Kudos
1 REPLY 1
EnTerr
Roku Guru

Re: video.observeField("streamInfo.measuredBItrate", "onFieldChange")

Ah? What makes you think you can put a contract on a "sub-field" of a node field?

IMHO, the best that one can do is `rsgVideo.observeField("streaminfo", ...)` - though i am not sure if that will ever fire.

Does RSG ever call observers that listen on "read-only" fields?? (Now that's a good question, on the exact meaning of "read-only")
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.