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

Scene Graph Video Node - Mute

I'm using the Scene Graph Video node and am testing out the mute functionality. I've tested it out on three different devices:

  • Streaming Stick (3500) 

  • Streaming Stick (3600x)

  • Premiere+ (4630)
It works for the 4630 but not the 3500 or 3600x. Does anyone know why that is? I've used the sample code from this page (https://sdkdocs.roku.com/display/sdkdoc/Video)

<Video
  id="musicvideos"
  width="1280"
  height="720"
  translation="[0,0]"
/>

<script type="text/brightscript" >
<![CDATA[
 
sub init()
  m.top.setFocus(true)
  setVideo()
end sub
 
function setVideo() as void
  videoContent = createObject("RoSGNode", "ContentNode")
  videoContent.url = "https://roku.s.cpl.delvenetworks.com/media/59021fabe3b645968e382ac726cd6c7b/60b4a471ffb74809beb2f7d5a15b3193/roku_ep_111_segment_1_final-cc_mix_033015-a7ec8a288c4bcec001c118181c668de321108861.m3u8"
  videoContent.title = "Test Video"
  videoContent.streamformat = "hls"
 
  m.video = m.top.findNode("musicvideos")
  m.video.content = videoContent
  m.video.control = "play"
 
 'Try muting during playback
 m.video.mute = true

end function
 
]]>
</script>

My assumption is that it's dependent on the hardware and specifically the headphone jack on the remote. Neither the 3500 or 3600x have the headphone jack but the 4630 does. Thanks for taking a look and I'd appreciate any insight anyone has. Thanks!
0 Kudos
3 REPLIES 3
EnTerr
Roku Guru

Re: Scene Graph Video Node - Mute

Sounds like a bug!
I don't think the Co would intentionally and undocumented-ly cause an API schism like that.
0 Kudos
monkeysource
Visitor

Re: Scene Graph Video Node - Mute

What firmware are the devices running? Might be a difference.

One thing you could try, wait for the m.video.state to be playing and then try muting again? Maybe it defaults to false when the playback starts?
0 Kudos
firemaple
Visitor

Re: Scene Graph Video Node - Mute

Thanks EnTerr and Monkeysource for the replies.

Here's the firmware of the newer streaming stick and the Premier+:
-------------------------------------------------------
Model = 3600X
Version = 247.50E04096A
Supports 5.1 surround = false
Can Output 5.1 surround = false
Audio Output Channel = Stereo
Model Display Name = Roku Stick
Sound Effects Volume =  40
Audio Decode Info:
<Component: roAssociativeArray> =
{
    AAC: "2:0:0:0:"
    ALAC: "6:0:0:0:"
    FLAC: "6:0:0:0:"
    LPCM: "6:0:0:0:"
    MP3: "2:0:0:0:"
    MPEG2: "2:0:0:0:"
    VORBIS: "6:0:0:0:"
    WMA: "6:0:0:0:"
    WMAPRO: "8:0:0:0:"
}
-------------------------------------------------------
-------------------------------------------------------
Model = 4630X
Version = 297.22E07120A
Supports 5.1 surround = false
Can Output 5.1 surround = false
Audio Output Channel = Stereo
Model Display Name = Roku Premiere+
Sound Effects Volume =  40
Audio Decode Info:
<Component: roAssociativeArray> =
{
    AAC: 6:0:0:0:
    ALAC: 6:0:0:0:
    FLAC: 6:0:0:0:
    LPCM: 6:0:0:0:
    MP3: 2:0:0:0:
    MPEG2: 2:0:0:0:
    WMA: 6:0:0:0:
    WMAPRO: 8:0:0:0:
}
-------------------------------------------------------

Indeed, they use different versions of the firmware.
@Monkeysource -- That was a good idea to wait for the m.video.state to change to playing and then try to mute. I tried that and saw the same result.
I'm beginning to think, like EnTerr mentioned, that it's a bug in the firmware. Does anyone know how to submit that to Roku?
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.