Forum Discussion
belltown
9 years agoRoku Guru
"ToNyT" wrote:
Hi Mark,
if you think that my post is in a wrong section, please, move this thread to the correct place.
I need to know the size for debugging utilities.
Running a smooth streaming session, i wont' know, what's the size (byte) of a downloaded chunk.
I find this project on github
https://github.com/belltown/Roku-NewVideoPlayer/blob/master/source/Utils.brs
Take a look on line 602, we find it: IsDownloadSegmentInfo, and on line 611 we can find: _debug ("SegSize: " + info.SegSize.ToStr (), "> ")
Can i suppose that "IsDownloadSegmentInfo", and "SegSize", give us info about chunks?
I read some values , but I do not know what they mean.
Functions used in this project are available on roku, but nothing is described on official documentation:
https://sdkdocs.roku.com/dosearchsite.action?where=sdkdoc&spaceSearch=true&queryString=IsDownloadSegmentInfo
How can i get chunk size info ?
if you have any suggestions please let me know
Thanks
roVideoScreenEvent and roVideoPlayerEvent contain these undocumented event types: 31 - IsDownloadSegmentInfo(), and 37 - IsSegmentDownloadStarted(). I'm not sure why they're undocumented. I've found them useful for debugging HLS streams. You can figure out the event fields from the GitHub file you linked to.
IsDownloadSegmentInfo() does contain the size of each downloaded HLS segment. I'm not sure whether it would apply to smooth streams as well. You could try it and see.