首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >VAPIX将音频发送到axis ip摄像机

VAPIX将音频发送到axis ip摄像机
EN

Stack Overflow用户
提问于 2012-06-24 17:26:54
回答 1查看 2.9K关注 0票数 1

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

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

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

Vapix Audio SDK

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-07-14 19:52:11

问题的解决方案:

代码语言:javascript
复制
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
    }
   }
}
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/11176333

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档