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: 
ratish
Visitor

EndPoint Roku uses for bandwidth.minute

Hi, Pasted below is the code snippet which recieves the roSystemLogEvent and tries to print the bandwidth.minute.
I have my roku connected to 50Mpbs internet via ethernet( verified bandwidth using speedtest).
But the bandwidth.minute gives bandwidth in the range of 6000 to 10000 kpbs max.
Since the below code do not have any VideoScreen object, playing anything I am curious about the parameters Roku is looking to calculate the bandwidth which is too low than what speed test is showing.
Can anyone help me to understand roku behavior in this case?

Library "v30/bslDefender.brs"

sub Main(argArr = invalid as Dynamic )
m.port = CreateObject("roMessagePort")
m.syslog = CreateObject("roSystemLog")
m.syslog.SetMessagePort(m.port)
m.syslog.EnableType("http.error")
'm.syslog.EnableType("http.connect")
m.syslog.EnableType("bandwidth.minute")

while true 'not m.appFinished ' this is hold on for the activit config , please do it
msg = m.port.getMessage()
if msg <> invalid and type(msg) = "roSystemLogEvent"
info = msg.GetInfo()
if info.Lookup("LogType") = "bandwidth.minute"
msgConsumed = true
print "bandwidth.minute: "; info.Lookup("Bandwidth")
else if info.Lookup("LogType") = "http.connect" then
print "http.connect Url: "; info.Lookup("Url")
print "http.connect OrigUrl: "; info.Lookup("OrigUrl")
endif
end if
end while
end sub
0 Kudos
2 REPLIES 2
ratish
Visitor

Re: EndPoint Roku uses for bandwidth.minute

Please ignore the kpbs or Mpbs typo. I meant kbps and Mbps.
0 Kudos
dcrandall
Visitor

Re: EndPoint Roku uses for bandwidth.minute

Take my ramblings with a grain of salt, but I think the Roku has a limited amount of bandwidth it will process, even with 50Mbps.

If you put in the secret key combo of -
H - H - H - H - H - RW - RW - RW - FF - FF

You might be able to see some change in the values you're getting as you play with some of those settings?
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.