VLC plugin object Method
L versioninfo: Member, a string that returns version information
L VLC. versioninfo (): method, a string that returns version information
Audio object attributes (read/write)
L VLC. Audio. Mute: mute and non-mute
L VLC. Audio. Volume: volume percentage. The value ranges from 0.
L VLC. Audio. Track: audio track information. The value ranges from 0.
L VLC. audio. channel: The value ranges from 1 to 5 integers, indicating that the audio channel mode is used. The value can be "1 = stereo", "2 = reverse stereo", and "3 = left ", "4 = right" "5 = sound mixing ".
L VLC. Audio. togglemute (): Method to switch between mute and non-mute
Input object
Read-only attribute
L VLC. Input. Length: the length of the input file in milliseconds.
L VLC. Input. FPS: A floating frame is generated every second.
L VLC. Input. hasvout: A boolean value. True is returned. If the video is being displayed, false is returned and no video is displayed.
L read/write attributes
L VLC. Input. Position: When the multimedia stream is normalized, a floating point value is given. The value range is [0.0-1.0].
L VLC. Input. Time: Specifies the absolute position in milliseconds. This attribute can be used to seek the stream.
<! -- Absolute seek in stream! -->
VLC. Input. Time = <absolute seek>
<! -- Relative seek in stream! -->
VLC. Input. Time = VLC. Input. Time + <relative seek>
L VLC. Input. State: current state (idle/closed = 0, opening = 1, buffering = 2, hitting = 3, pausing = 4, stopping = 5, error = 6)
L VLC. Input. rate: The input speed. The floating speed is normal. 0.5 is half of the speed, double the speed of 2.0.
Playlist object
Read-only attribute
L VLC. playlist. itemcount: number of items in the current playlist
L VLC. playlist. isplaying: A boolean value. The value true indicates that the video is being played, and false indicates that the video is not played.
Method
L VLC. playlist. Add (MRL): Add an MRL (Multimedia Resource Locator) playlist project. MRl must be a string.
L VLC. playlist. Add (MRl, name, options): Add the MRL (Multimedia Resource Locator) playlist item with the meta name and options. All input values must be strings.
L VLC. playlist. Play (): start playing the current list item
L VLC. playlist. togglepause (): switches the pause status of the current playlist item.
L VLC. playlist. Stop (): stops playing the current playlist item.
L VLC. playlist. Next (): iterates to the next playlist project.
L VLC. playlist. Prev (): iterations to previous music projects
L VLC. playlist. Clear (): clears the current playlist. All items will be deleted.
L VLC. playlist. removeitem (number): Delete the specified project number (number cannot be larger than VLC. playlist. itemcount)
Video Object
Read-only attribute
L VLC. Video. Width: returns the horizontal video size.
L VLC. Video. Height: returns the vertical video size.
Read/write attributes
L VLC. Video. fullscreen: if it is set to true, the video will be displayed in full screen mode. If it is set to false, the video will be displayed in the specified size. This attribute requires a Boolean value as the input.
L VLC. Video. aspectratio: gets and sets the aspect ratio to use the video screen. This attribute uses a string as the input value. Valid values:, and"
Method
L VLC. Video. togglefullscreen (): Full Screen mode switch
Log object
Read-only attribute
L VLC. log. Messages: returns a message object.
L read/write attributes
L VLC. log. verbosity: number of redundant levels of log information changed by writing [-, 3]. The meanings of these numbers are as follows:-1 disabled, 0 Information, 1 error, 2 warning, 3 debugging.
Messages object
Read-only attribute
L messages. Count: Number of log messages returned
L messages. Severity: Number, log information severity (0 = Information, 1 = error, 2 = warning, 3 = debugging)
L message. Name: the log information printed on the name of the VLC module (such as the URL, DirectX, and so on ..)
L message. Type: prints log information (such as input, access, Vout, sout, etc.) on the VLC of the module type ..)
L message. Message: Message Text
Method
L messages. Clear (): clears the current log buffer.
L messages. iterator (): returns a message iterator object.
Iterator object
Read-only attribute
L iterator. hasnext: return a Boolean value, indicating that there is another information
Method
L iterator. Next (): return the log of the next message object.
Functions that VLC can implement
L VLC can achieve seek, fast play, and slow play by modifying the INPUT attribute
L you can modify the audio attribute to set audio channels, volume, and mute.
L control the full screen, screen ratio, and screen size by setting video.
L playlist object control allows you to add and delete playback objects.
Current Problem Description
L VLC supports ts files. The VLC control and the time progress cannot be obtained. Although the video has been played for a long time, the time is always 0. See figure 1 and figure 2:
Figure 1: VLC for Windows
Figure 2: VLC Web plug-in version
Split Analysis
L The INPUT attribute of VLC fails to get the FPS and time values normally.
Result
L The end time cannot be controlled
L progress bar invalid