def VolumeChanged(c): event.post().OnVolumeChanged(muted=c.muted, volume=c.volume)
def OnPlay(c,songid=None,**item): item[ "type" ]="song" if songid!=None: item["id"]=songid event.post().Player.OnPlay( items= item, player= { "playerid": c.playerid, "speed":c.speed } )