• 大小: 56.29MB
    文件类型: .zip
    金币: 2
    下载: 1 次
    发布日期: 2022-08-25
  • 语言: C#
  • 标签: rtsp直播  vlc视频  

资源简介

VLC开发包,直接直播视频播放,推流的地址,直接进行rtmp,rtsp,hls,http等在线直播。

资源截图

代码片段和文件信息

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


/**

* 作者:IT记事本
* 年份:2016
* 网址:www.itnotepad.cn 
* 说明:请描述文件功能及作用等信息 

**/


namespace CSharpVLC
{
    public partial class frmITNotepad : Form
    {
        public frmITNotepad()
        {
            InitializeComponent();
            this.Init();
        }
        /// 
        /// 初始化
        /// 

        private void Init()
        {
            btnFirst.Click += (s e) =>
            {
                string rtsp = txtFirst.Text.Trim();
                if (string.IsNullOrWhiteSpace(rtsp))
                {
                    MessageBox.Show(“请填写RTSP地址!“);
                    txtFirst.Focus();
                    return;
                }
                if (btnFirst.Text == “直播“)
                {
                    bool flag=uPlayer1.Play(rtsp);
                    if (flag)
                    {
                        btnFirst.Text = “停止“;
                    }
                    else
                    {
                        MessageBox.Show(“播放失败,请检查地址及VLC插件!“);
                    }
                }
                else
                {
                    btnFirst.Text = “直播“;
                    uPlayer1.Stop();
                }
            };

            btnSecond.Click += (s e) =>
            {
                string rtsp = txtSecond.Text.Trim();
                if (string.IsNullOrWhiteSpace(rtsp))
                {
                    MessageBox.Show(“请填写RTSP地址!“);
                    txtSecond.Focus();
                    return;
                }
                if (btnSecond.Text == “直播“)
                {
                    bool flag = uPlayer2.Play(rtsp);
                    if (flag)
                    {
                        btnSecond.Text = “停止“;
                    }
                    else
                    {
                        MessageBox.Show(“播放失败,请检查地址及VLC插件!“);
                    }
                }
                else
                {
                    btnSecond.Text = “直播“;
                    uPlayer2.Stop();
                }
            };
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2016-12-28 22:54  CSharpVLC\
     目录           0  2016-12-28 23:02  CSharpVLC\CSharpVLC\
     文件        1389  2016-12-28 22:53  CSharpVLC\CSharpVLC.sln
     文件       62976  2016-12-28 23:32  CSharpVLC\CSharpVLC.v11.suo
     文件         187  2016-12-28 22:07  CSharpVLC\CSharpVLC\App.config
     目录           0  2016-12-28 23:02  CSharpVLC\CSharpVLC\bin\
     目录           0  2016-12-28 23:32  CSharpVLC\CSharpVLC\bin\Debug\
     文件       11776  2016-12-28 23:32  CSharpVLC\CSharpVLC\bin\Debug\CSharpVLC.exe
     文件         187  2016-12-28 22:07  CSharpVLC\CSharpVLC\bin\Debug\CSharpVLC.exe.config
     文件       24064  2016-12-28 23:32  CSharpVLC\CSharpVLC\bin\Debug\CSharpVLC.pdb
     文件       22984  2016-12-28 23:31  CSharpVLC\CSharpVLC\bin\Debug\CSharpVLC.vshost.exe
     文件         187  2016-12-28 22:07  CSharpVLC\CSharpVLC\bin\Debug\CSharpVLC.vshost.exe.config
     文件         490  2015-10-30 15:19  CSharpVLC\CSharpVLC\bin\Debug\CSharpVLC.vshost.exe.manifest
     文件      113171  2016-12-28 22:53  CSharpVLC\CSharpVLC\bin\Debug\libvlc.dll
     文件     2396691  2016-12-28 22:53  CSharpVLC\CSharpVLC\bin\Debug\libvlccore.dll
     文件      376851  2016-12-28 22:53  CSharpVLC\CSharpVLC\bin\Debug\npvlc.dll
     目录           0  2016-12-28 23:30  CSharpVLC\CSharpVLC\bin\Debug\plugins\
     目录           0  2016-12-28 23:25  CSharpVLC\CSharpVLC\bin\Debug\plugins\access\
     文件       13843  2016-12-28 22:53  CSharpVLC\CSharpVLC\bin\Debug\plugins\access\libaccess_attachment_plugin.dll
     文件      100371  2016-12-28 22:53  CSharpVLC\CSharpVLC\bin\Debug\plugins\access\libaccess_bd_plugin.dll
     文件       74259  2016-12-28 22:53  CSharpVLC\CSharpVLC\bin\Debug\plugins\access\libaccess_ftp_plugin.dll
     文件      116755  2016-12-28 22:53  CSharpVLC\CSharpVLC\bin\Debug\plugins\access\libaccess_http_plugin.dll
     文件       46611  2016-12-28 22:53  CSharpVLC\CSharpVLC\bin\Debug\plugins\access\libaccess_imem_plugin.dll
     文件       72211  2016-12-28 22:53  CSharpVLC\CSharpVLC\bin\Debug\plugins\access\libaccess_mms_plugin.dll
     文件       40979  2016-12-28 22:53  CSharpVLC\CSharpVLC\bin\Debug\plugins\access\libaccess_rar_plugin.dll
     文件       94739  2016-12-28 22:53  CSharpVLC\CSharpVLC\bin\Debug\plugins\access\libaccess_realrtsp_plugin.dll
     文件       39955  2016-12-28 22:53  CSharpVLC\CSharpVLC\bin\Debug\plugins\access\libaccess_smb_plugin.dll
     文件       14355  2016-12-28 22:53  CSharpVLC\CSharpVLC\bin\Debug\plugins\access\libaccess_tcp_plugin.dll
     文件       14355  2016-12-28 22:53  CSharpVLC\CSharpVLC\bin\Debug\plugins\access\libaccess_udp_plugin.dll
     文件       76307  2016-12-28 22:53  CSharpVLC\CSharpVLC\bin\Debug\plugins\access\libaccess_vdr_plugin.dll
     文件      159763  2016-12-28 22:53  CSharpVLC\CSharpVLC\bin\Debug\plugins\access\libcdda_plugin.dll
............此处省略688个文件信息

评论

共有 条评论