You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 15, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Oct 15, 2026. It is now read-only.
"PlayDuration" is only supported when used with TimeGrid component. #59
Recently i integrated TimeGrid component in my project for EPG guide, but now i am getting this error in static analysis:
"PlayDuration" is only supported when used with TimeGrid component. All other uses have been deprecated.
I think, this is something on Roku's end. As this is a new implementation, don't think it can be deprecated this quickly. Getting this error even when we have TimeGrid component used in channel.
Static analysis isn't part of SGDEX. This would typically be something to followup with your partner manager. In this case I agree that the tool is being overly aggressive and the team that works on it is investigating.
We have a Task that loads schedule information from the server and returns an array of ContentNode objects which we assign to the TimeGrid. The fact that we set PlayDuration in the task is causing the static analysis to fail.
As a workaround we can set a different property in our loading task (e.g. ProgramDuration), and then in the TimeGrid screen we can loop through all the results of the task setting PlayDuration = ProgramDuration.
Having the static analysis bring this up as a warning seemed unnecessary, but now having it as error seems like it's the wrong thing to do.
@neilsb I tried setting different property, but TimeGrid doesn't create slots after that. So don't think workaround can work here. Did you do it successfully?
Sorry - I was incorrect. Trying to assign PlayDuration = ProgramDuration in the screen containing the TimeGrid component still fails static analysis.
As far as I can see, as it stands right now there is no to set PlayDuration for a ContentNode and therefor now way to have a working TimeGrid pass Static Analysis.
Activity
RokuChris commentedon Apr 13, 2021
Static analysis isn't part of SGDEX. This would typically be something to followup with your partner manager. In this case I agree that the tool is being overly aggressive and the team that works on it is investigating.
Manvendra-Jadon commentedon Apr 13, 2021
@RokuChris Thanks.
neilsb commentedon Apr 14, 2021
We also hit this issue.
We have a Task that loads schedule information from the server and returns an array of
ContentNodeobjects which we assign to theTimeGrid. The fact that we setPlayDurationin the task is causing the static analysis to fail.As a workaround we can set a different property in our loading task (e.g.
ProgramDuration), and then in theTimeGridscreen we can loop through all the results of the task settingPlayDuration = ProgramDuration.Having the static analysis bring this up as a warning seemed unnecessary, but now having it as error seems like it's the wrong thing to do.
Manvendra-Jadon commentedon Apr 14, 2021
@neilsb I tried setting different property, but TimeGrid doesn't create slots after that. So don't think workaround can work here. Did you do it successfully?
neilsb commentedon Apr 14, 2021
Sorry - I was incorrect. Trying to assign
PlayDuration = ProgramDurationin the screen containing the TimeGrid component still fails static analysis.As far as I can see, as it stands right now there is no to set
PlayDurationfor aContentNodeand therefor now way to have a working TimeGrid pass Static Analysis.unwiredben commentedon Apr 15, 2021
http://devtools.web.roku.com/#static-channel-analysis-tool has been updated to 7.9.3 with a fix for this.
Manvendra-Jadon commentedon Apr 15, 2021
@unwiredben Thanks.