Page 1 of 1

Sound /Volume for Android Native Players

Posted: Sat Jun 18, 2022 10:09 pm
by JereMiami
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:

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
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?

Re: Sound /Volume for Android Native Players

Posted: Sun Jun 19, 2022 7:52 pm
by Klaus
Hm, looks likesomething like:

Code: Select all

mobilecontrolset xyz,"volume",50
is really missing, at last in the dictionary.

Can't you just set the playloudness to 0 and back to its previous value when the video has finished?
The dictionary indicates that "the playloudness" is available on all platforms, at least worth a try.