Media Player Control
Player.controls.play (); Play
Player.controls.stop (); Stop it
Player.controls.pause (); Time out
Player.controls.currentPosition returns the current time position (in seconds) of the playback file
Player.controls.currentPositionString time-formatted string "0:32"
Player.currentMedia.duration returns the total length of the playback file (in seconds)
Player.currentMedia.durationString time-formatted string "4:34"
Player.settings.volume Volume (0-100)
Player.settings.balance Channel, it should be able to carry out stereo, left channel, right channel control. But the corresponding value is not clear.
Player.settings.mute = S Mute (s evaluates to True and false)
ID of the container in which the caption appears in the Player.closedCaption.CaptioningID Web page
Player.closedCaption.SAMIFileName Title file Address
Player.playstate return to Player status (3: Playing, 2: Pause 1: Stopped)
--------------------------------------------------------------------------------------------------------------
Real Player Control
Player. Doplay () plays the
player. Dopause () pauses
player. Dostop () stops
player. GetLength () returns the total length (in milliseconds) of the playback file
Player. GetPosition () returns the current time position (in milliseconds) for the playback file
Player. Getplaystate () returns the player status (0: Stop, 1: Connection, 2: Buffer, 3: Play, 4: Pause, 5: Find)
player. where the SetPosition (n) time position jumps to N (n takes a value in milliseconds)
player. SetVolume (n) sets the volume (n values to 0)
Player. Setmute (s) Mute (s evaluates to True and false)
Player. Setfullscreen () Full screen
Player.setsource () set file source