Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Level 7

timedmetadata

I am working on a video node, which has dynamic ad insertion. I am observing the timedmetadata for its events when ads are being inserted. But while the ads are playing I don't find any metadata information.

video.observeFieldScoped("timedMetaData", "onTimedMetaData")

What should i do to get the ads information in the timedMetaData field ?

 

 

0 Kudos
1 Reply
Highlighted
Level 8

Re: timedmetadata

Hi,

Did You set "timedMetaDataSelectionKey" field of video node?

For obtaining metadata You have to set timed metadata selection keys, as follows: 

SGVideoNode.timedMetaDataSelectionKeys = ["*"]

Setting this array ["*"]  should select all timed metadata.

For more reading visit this documentation site  and search for "timedMetaDataSelectionKeys ", "timedMetaData " fields.

Although, i think that timed metadata which does not contain start time are not populated by SG video node. But this is my assumption for now, i need to take a deeper look at timedMetaData in roku and documentation.

 

0 Kudos