Sound /Volume for Android Native Players
Posted: Sat Jun 18, 2022 10:09 pm
Hey all:
I have a card on android and it works nicely to play videos automatically and in a looping format when the card opens. Here is that code, which is pretty standard stuff:
My question though is, the video has sound. I don't want sound, but just the video play and looping. I have turned off the native player controls because they are chunky and cover half the video player. So, anyone know how to turn the volume off so that there is no sound?
I have a card on android and it works nicely to play videos automatically and in a looping format when the card opens. Here is that code, which is pretty standard stuff:
Code: Select all
put the rect of grc "video" of tTemp into tRect
put ("video" && tGroupNo) into fld "playerName" of tTemp
mobileControlCreate "player", ("video" && tGroupNo)
mobileControlSet ("video" && tGroupNo), "filename", tVidFile
mobileControlSet ("video" && tGroupNo), "visible", true
mobileControlSet ("video" && tGroupNo), "showController", false
mobileControlSet ("video" && tGroupNo), "looping", true
mobileControlSet ("video" && tGroupNo), "preserveAspect", true
mobileControlSet ("video" && tGroupNo), "rect", tRect