This is a read/write property. It sets and gets the current volume level of the playing media selection.
Parameter: level
Type: integer (property)
Description: This sets the volume level. 100=full
volume and 0
is the lowest volume.
Parameter:
host (optional)
Type: string
Description: Leaving this a null string will apply the command to the first
instance HomeSeer finds, otherwise use the hostname of the computer for
this command. If
more than one instance of the Speaker application is running on "host"
then you may need to specify the instance as well in the format host:instance.
None.
sub main()
' get the current volume level
dim level
level = hs.MediaVolume
' set the volume to full
hs.MediaVolume = 100
end sub