C# VAPIX向axis ip摄像头发送音频

C# VAPIX向axis ip摄像头发送音频,c#,audio,sdk,speaker,vapix,C#,Audio,Sdk,Speaker,Vapix,我有一个带扬声器输出的轴凸轮。我已经在笔记本上安装了Vapix库,现在我可以接收MEPEG-4格式的视频 现在,我想将从笔记本中捕获的音频发送到具有相同库的摄像头 最后我搜索了这个文档,但我不知道如何在C#中使用它 问题的解决方案: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.L

我有一个带扬声器输出的轴凸轮。我已经在笔记本上安装了Vapix库,现在我可以接收MEPEG-4格式的视频

现在,我想将从笔记本中捕获的音频发送到具有相同库的摄像头

最后我搜索了这个文档,但我不知道如何在C#中使用它


问题的解决方案:

using System;
using System.Collections.Generic;
using System.ComponentModel; 
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace VapixForToroRosso
{
public partial class Form1 : Form
{
    private string USER = "root";
    private string PASS = "Blescia";
    private string IP = "192.168.1.2";
    public Form1()
    {
        InitializeComponent();
    }

    private void Form1_Load(object sender, EventArgs e)
    {
        axAxisMediaControl1.Volume = 100; //Set the volume of speaker
        /*
         *Use this if the camera required the login
         */
        axAxisMediaControl1.MediaUsername = USER; //Set the username
        axAxisMediaControl1.MediaPassword = PASS; //Set the password
        axAxisMediaControl1.Mute = false; //Disable Mute    
        axAxisMediaControl1.EnableReconnect = true; //Reconnect to the camera automatically

        axAxisMediaControl1.MediaURL = "rtsp://192.168.1.2/mpeg4/media.amp"; //For Retrieve the video streaming
        axAxisMediaControl1.AudioConfigURL = "http://" + IP + "/axis-cgi/view/param.cgi?camera=1&action=list&group=Audio,AudioSource.A0"; //Pre-Configuration of Camera
        axAxisMediaControl1.AudioTransmitURL = "http://" + IP + "/axis-cgi/audio/transmit.cgi"; //Url to send the streaming AUDIO          

        axAxisMediaControl1.Play();
    }

    private void btnStartStreaming_Click(object sender, EventArgs e)
    {
        axAxisMediaControl1.AudioTransmitStart(); //Start the streaming to camera
    }

    private void btnStopStreaming_Click(object sender, EventArgs e)
    {
        axAxisMediaControl1.AudioTransmitStop(); //Stop the streaming the camera
    }
   }
}

嗨,孩子们。。我已经解决了。。。如果你有兴趣,请给我一个下午。你可以随时回答你自己的问题与解决方案。不能发送私人消息的StackOverflow。请将您在此处找到的解决方案作为答案写下来,我将对此进行投票。@Antonio无法向您发送PM。您可以演示如何连接到相机以获取MP4而非ASF格式的视频吗?