• 大小: 72.28MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-05-09
  • 语言: C#
  • 标签: vlc  rtsp  客户端  C#  视频播  

资源简介

使用VLC 插件播放RTSP 视频流,可以实现多个视频流播放

资源截图

代码片段和文件信息

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;

namespace Csharp_VLC
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        private TabPage tbMobile = null;
        private void Form1_Load(object sender EventArgs e)
        {
            var UrlList = INIHelper.Read(“Setting“ “Url“ Environment.CurrentDirectory + “\\Config.ini“);
            if (!string.IsNullOrWhiteSpace(UrlList))
             {
                 var Urls = UrlList.Split(‘‘);
                 Listyer> List = new Listyer>();
                 for (var i = 0; i < Urls.Length; i++)
                 {
                     tbMobile = new TabPage(“视频线路“ + i);
                     tbMobile.Name = “tbmobile“ + i;
                     PictureBox sy = new PictureBox();
                     sy.Name = “v“ + i;
                     sy.Dock = Dockstyle.Fill;
                     tbMobile.Controls.Add(sy);
                     tabControl1.Controls.Add(tbMobile);
                     VLCPlayer vlc = new VLCPlayer();
                     string url = ““ + Urls[i];
                     vlc.playUrl(url sy.Handle);
                     vlc.playLocalVideo(url sy.Handle);
                     List.Add(vlc);
                 }
             }
             else
             {
                 MessageBox.Show(“未找到视频地址“);
             }
            //Listyer> List = new Listyer>();
            //for (var i = 0; i < 2; i++)
            //{
            //    tbMobile = new TabPage(“视频“ + i);
            //    tbMobile.Name = “tbmobile“ + i;
            //    PictureBox sy = new PictureBox();
            //    sy.Name = “v“ + i;
            //    sy.Dock = Dockstyle.Fill;
            //    tbMobile.Controls.Add(sy);
            //    tabControl1.Controls.Add(tbMobile);
            //    VLCPlayer vlc = new VLCPlayer();
            //    string url = “rtmp://139.224.18.53/live/xtd001“;
            //    vlc.playUrl(url sy.Handle);
            //    vlc.playLocalVideo(url sy.Handle);
            //    List.Add(vlc);
            //}
               
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件         999  2018-05-08 14:36  Csharp_VLC\Csharp_VLC.sln
     文件       38400  2019-03-12 17:16  Csharp_VLC\Csharp_VLC.v12.suo
     目录           0  2019-03-12 17:16  Csharp_VLC\Csharp_VLC\
     文件         187  2018-05-08 14:36  Csharp_VLC\Csharp_VLC\App.config
     目录           0  2019-03-12 17:18  Csharp_VLC\Csharp_VLC\bin\
     文件    37862178  2019-03-12 17:18  Csharp_VLC\Csharp_VLC\bin\Debug.zip
     目录           0  2019-03-12 17:08  Csharp_VLC\Csharp_VLC\bin\Debug\
     文件         189  2019-03-12 17:08  Csharp_VLC\Csharp_VLC\bin\Debug\Config.ini
     文件       20992  2019-03-12 17:15  Csharp_VLC\Csharp_VLC\bin\Debug\Csharp_VLC.exe
     文件         187  2018-05-08 14:36  Csharp_VLC\Csharp_VLC\bin\Debug\Csharp_VLC.exe.config
     文件       54784  2019-03-12 17:15  Csharp_VLC\Csharp_VLC\bin\Debug\Csharp_VLC.pdb
     文件       24224  2019-03-12 17:16  Csharp_VLC\Csharp_VLC\bin\Debug\Csharp_VLC.vshost.exe
     文件         187  2018-05-08 14:36  Csharp_VLC\Csharp_VLC\bin\Debug\Csharp_VLC.vshost.exe.config
     文件         490  2016-03-09 13:48  Csharp_VLC\Csharp_VLC\bin\Debug\Csharp_VLC.vshost.exe.manifest
     文件      144832  2016-06-01 22:17  Csharp_VLC\Csharp_VLC\bin\Debug\libvlc.dll
     文件     2632640  2016-06-01 22:19  Csharp_VLC\Csharp_VLC\bin\Debug\libvlccore.dll
     目录           0  2019-03-12 17:24  Csharp_VLC\Csharp_VLC\bin\Debug\plugins\
     目录           0  2018-05-08 14:38  Csharp_VLC\Csharp_VLC\bin\Debug\plugins\access\
     文件      114112  2016-06-01 22:18  Csharp_VLC\Csharp_VLC\bin\Debug\plugins\access\libaccess_bd_plugin.dll
     文件       88512  2016-06-01 22:18  Csharp_VLC\Csharp_VLC\bin\Debug\plugins\access\libaccess_mms_plugin.dll
     文件      122816  2016-06-01 22:18  Csharp_VLC\Csharp_VLC\bin\Debug\plugins\access\libaccess_realrtsp_plugin.dll
     文件       22464  2016-06-01 22:18  Csharp_VLC\Csharp_VLC\bin\Debug\plugins\access\libattachment_plugin.dll
     文件      773478  2016-06-01 22:14  Csharp_VLC\Csharp_VLC\bin\Debug\plugins\access\libbluray-j2se-0.9.3.jar
     文件      171968  2016-06-01 22:18  Csharp_VLC\Csharp_VLC\bin\Debug\plugins\access\libcdda_plugin.dll
     文件      554944  2016-06-01 22:18  Csharp_VLC\Csharp_VLC\bin\Debug\plugins\access\libdshow_plugin.dll
     文件      265152  2016-06-01 22:18  Csharp_VLC\Csharp_VLC\bin\Debug\plugins\access\libdtv_plugin.dll
     文件      245184  2016-06-01 22:18  Csharp_VLC\Csharp_VLC\bin\Debug\plugins\access\libdvdnav_plugin.dll
     文件      167360  2016-06-01 22:18  Csharp_VLC\Csharp_VLC\bin\Debug\plugins\access\libdvdread_plugin.dll
     文件       55744  2016-06-01 22:18  Csharp_VLC\Csharp_VLC\bin\Debug\plugins\access\libfilesystem_plugin.dll
     文件       98752  2016-06-01 22:18  Csharp_VLC\Csharp_VLC\bin\Debug\plugins\access\libftp_plugin.dll
     文件      127936  2016-06-01 22:18  Csharp_VLC\Csharp_VLC\bin\Debug\plugins\access\libhttp_plugin.dll
............此处省略360个文件信息

评论

共有 条评论