Two-time development via VLC's ActiveX, implementing a multimedia player 2011-04-10 00:57:23

Source: Internet
Author: User

Http://blog.chinaunix.net/xmlrpc.php?r=blog/article&uid=25498312&id=218294 was developed two times via the VLC ActiveX, Implementing a multimedia player 2011-04-10 00:57:23

Classification: System operation and Maintenance

The first thing to register is the VLC ActiveX control.

Copy the Axvlc.dll file under the Vlc-0.8.6e\activex directory to the C:\Windows directory below, and then run command prompt cmd. Register the control by entering the following command at the command prompt

REGSVR32 C:\WINDOWS\AXVLC. Dll

The system will prompt you to register successfully, but you can't actually use the playback function! By analyzing the registration information of the registry, it is known that some of the dynamic link libraries that are dependent on playback are not in ActiveX.

So you have to choose the VLC Player for Windows, and get its compiled plugin. Download the player and install it to http://www.videolan.org/vlc/download-windows.html, then copy the Axvlc.dll, Axvlc.oca, Libvlc.dll, Npvlc.dll and all files under plugins to a directory (for example, myrelease) as the basis for supporting the operation of VLC ActiveX controls. With these files you can uninstall the installed VLC and use your own developed player.

Run command cmd, enter the Myrelease directory, and execute the following command to register the VLC ActiveX control:

REGSVR32 AXVLC. Dll

Then use vc++6.0 to develop a simple player. The specific development process is not detailed, please refer to the MYVLC.DSW project file under the MYVLC directory.

Since VLC does not use documentation, there is no development manual for ActiveX, and it is developed using VLC ActiveX Plugin v1 to understand the use of VLC controls by reading the class declarations in the Vlccontrol.h file. It can be known that it implements the basic playback function, but does not provide an interface to get the file playback time, so it is not possible to use time to display the playback progress, can only be expressed as a percentage of playback.

How to use the player

After running MyVLC.exe, a multimedia file supported by the VLC control can be opened for playback.

The player can implement the following functions:

1. Full screen: When playing video, you can double-click the VLC playback window to achieve full-screen display and window display switch. It is not known how to refresh the window, when the playback window is partially obscured, it may not be automatically refreshed, you have to use full-screen switch to achieve the refresh.

2. Progress display: During playback, the progress bar shows the playback progress, the label next to the progress bar shows the percentage of playback. Dragging the progress bar does not change the playback progress.

3. "FileName": Displays the file or URL that has been opened.

4. "OpenFile": Select and play a multimedia file on a disk

5. "Playurl": After entering the network stream media URL in the text input box, click to play. If you receive a broadcast, you cannot fast forward/rewind, adjust playback speed, pause/resume, and so on.

6. "Play": Play from the beginning of the file.

7. "Pause/resume": Pause/Resume Toggle.

8. "Stop": Stop playback, the playback window displays VLC logo.

9. "Backward": Back for 5 seconds. This button is useful when playing MPEG video, which causes a replay when playing mp3.

"Forward": Forward for 5 seconds. This button is useful when playing MPEG video, which causes a replay when playing mp3.

One. "Playslower": slows playback speed. Click once to reduce the speed of half, the slowest can only reach the normal speed of 1/8.

"Playfaster": Speeds up playback. Click one time to increase the speed, the fastest can only reach the normal speed of 8 times times.

13. "-" "+": adjust the volume to increase or decrease by 5 each time.

"Mute": Mute/non-muted toggle.

"About": Author information.

"Exit": Exits the application.

Read (8175) | Comments (0) | Forwards (0) |0

Previous: Using MinGW for VLC porting on the Win32 platform

Filed under: Vlc_record3

Two-time development via VLC's ActiveX, implementing a multimedia player 2011-04-10 00:57:23

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.