C # video Surveillance series (4): Client--Audio receiver and screenshot

Source: Internet
Author: User

Objective

Because the audio received this piece of code and description is not much, and screenshot features written together, let ' s go!!

First, wrote three articles, to a sketch of the interface, so that everyone has a number of hearts.

Second, audio acceptance

Audio accepted code is relatively simple, the server side is open by default, as long as you will pick up on board card connected with the aid 1/2/3/4 white line on it.

VC + + Code:

if (nn1 >= 0 )
    {
        MP4_ClientAudioStart(nn1);
        MP4_ClientAudioVolume(0xfff0);
    }

               C# Code:

            if (cs >= 0)
            {
                PcHikClient.MP4_ClientAudioStart(cs);
                PcHikClient.MP4_ClientAudioVolume(0xffff);
            }

Note the range of volume values set by Mp4_clientaudiovolume: (0-0XFFFF).

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.