VC + + Development VLC video player small problem--libvlc_new () returned to the vacant question

Source: Internet
Author: User

recently in the broadcast of RTSP video streaming, the use of VLC library.

When doing the demo, the initialization function Video_inst = Libvlc_new (Vlc_args_num, Vlc_args); The returned value is always empty, a lot of explanations are found on the net, the description of the function, the wood has a workaround.

The return value of the function indicates that the instanc of a VLC is returned when initialization is successfully created;

Workaround:

(1) Because the created project is a non-installed version of the player, it requires VLC plugins, which contains the various library files required by the player. At compile time, put the plugins folder in the Debug folder.

(2) At initialization time, the parameter is set to vlc_args[vlc_args_num++] = "--ignore-config";


There is a need to plugins, can be downloaded in my resources: http://download.csdn.net/detail/qtbmp/7943317

VC + + Development VLC video player small problem--libvlc_new () returned to the vacant question

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.