How to unmute native.newVideo() when it starts muted?

Hello everyone is there any way to unmute native.newVideo() when it starts muted? I noticed that I can switch sound on/off using object.isMuted when initially object.isMuted = false, but when it’s “true” it’s not possible to unmute it I believe.

Daily build (2018.3210), tested on Android.

Example: 

– … code to initialize native.newVideo(), load it and play

video.isMuted = true

timer.performWithDelay( 1000, function()

       video.isMuted=false – stays muted anyway

end, 1)

Your best bet here is to put together a small app that demos the problem. Create a project with a main.lua, config.lua, build.settings and any other assets (like the video) that our engineers need to build the project, run it and see the error. Put that in a .zip file (no other formats please) and use the “Report a bug” link at the top of the page.

Rob

Thanks Rob, I tried to report a bug, but got “Woops, looks like something went wrong” message (all files are in .zip format, etc.). Maybe some of my attachments are wrong?

I created small test app, but it’s better to build for device to test it since native.newVideo() is not working in the sim.

Video’s isMuted option set to switch’s state. When switch is on - video.isMuted = false, when switch is off - video.isMuted = true. You can switch sound on/off when video.isMuted = false by default.

Switch is saving its state to the sandbox. Turn off the sound and reload the app - it’ll not be possible to turn sound on after that (to turn it on you need to change switch to “on” and reload the app again). 

There’s no crashes or errors though.

Didn’t test it on iOS, but it’s probably affected too.

Test code:

https://www.dropbox.com/s/49u2b6k81so4i7e/native_video_mute_test.zip?dl=0

Not sure what I’m doing wrong with bug submission page, sorry :slight_smile:

Also here’s .apk for testing (it’s the same build as in .zip above):

Try to submit it again. We just fixed something blocking the form submission.

Rob

Your best bet here is to put together a small app that demos the problem. Create a project with a main.lua, config.lua, build.settings and any other assets (like the video) that our engineers need to build the project, run it and see the error. Put that in a .zip file (no other formats please) and use the “Report a bug” link at the top of the page.

Rob

Thanks Rob, I tried to report a bug, but got “Woops, looks like something went wrong” message (all files are in .zip format, etc.). Maybe some of my attachments are wrong?

I created small test app, but it’s better to build for device to test it since native.newVideo() is not working in the sim.

Video’s isMuted option set to switch’s state. When switch is on - video.isMuted = false, when switch is off - video.isMuted = true. You can switch sound on/off when video.isMuted = false by default.

Switch is saving its state to the sandbox. Turn off the sound and reload the app - it’ll not be possible to turn sound on after that (to turn it on you need to change switch to “on” and reload the app again). 

There’s no crashes or errors though.

Didn’t test it on iOS, but it’s probably affected too.

Test code:

https://www.dropbox.com/s/49u2b6k81so4i7e/native_video_mute_test.zip?dl=0

Not sure what I’m doing wrong with bug submission page, sorry :slight_smile:

Also here’s .apk for testing (it’s the same build as in .zip above):

Try to submit it again. We just fixed something blocking the form submission.

Rob