• 大小: 73.91MB
    文件类型: .rar
    金币: 2
    下载: 1 次
    发布日期: 2022-05-28
  • 语言: C#
  • 标签: c#  VLC  

资源简介

c#简易Vlc播放RTMP视频流的项目,里面有些开发的步骤以及需要注意的地方,下载之后希望评论。

资源截图

代码片段和文件信息

using Microsoft.VisualBasic.Devices;
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;
using WMPLib;
namespace Play_TRMPProject
{
    public partial class Form1 : Form
    {

        public Form1()
        {
            InitializeComponent();
        }
        private void btn_play_Click(object sender EventArgs e)
        {
            //axWindowsMediaPlayer1.URL = ““D:/Images/20180615/ScreenCapture_2018-6-15 14.23.11.wmv“; //
            //axWindowsMediaPlayer1.Ctlcontrols.play();
        }

        private void button1_Click(object sender EventArgs e)
        {
            //////string pluginPath = Environment.CurrentDirectory + “\\plugins\\“;  //插件目录
            //////Play_TRMPProjectbase player = new Play_TRMPProjectbase(pluginPath);
            //////player.SetRenderWindow((int)this.panel2.Handle);//panel
            //////player.LoadFile(“D:/Images/20180615/ScreenCapture_2018-6-15 14.23.11.wmv“);//视频文件路径
            //////player.Play();

            //输入参数
            string parameter = “:sout=#transcode{vcodec=h264acodec=mpgaab=128channels=2samplerate=44100}:file{dst=D:\\123.mp4overwrite} :sout-all :sout-keep“;
            this.axVLCPlugin21.playlist.clear();
            //添加播放列表
            this.axVLCPlugin21.playlist.add(this.textBox1.Text null parameter);  //D:/Images/1.WMA rtmp://192.168.0.155:1935/live/00d7f3bc69dc46f68c5f49dc8e358863   rtmp://live.hkstv.hk.lxdns.com/live/hks

            //播放列表更新到新添加的播放项();
            //播放
            this.axVLCPlugin21.playlist.play();

        }

        private void Form1_Load(object sender EventArgs e)
        {
            this.textBox1.Text = “rtmp://live.hkstv.hk.lxdns.com/live/hks“;
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

    ..A..H.     68608  2018-06-29 15:49  播放RTMP流\Play_TRMPProject\.vs\Play_TRMPProject\v14\.suo

     文件        189  2018-06-21 09:56  播放RTMP流\Play_TRMPProject\Play_TRMPProject\App.config

     文件      25088  2018-06-23 11:57  播放RTMP流\Play_TRMPProject\Play_TRMPProject\bin\Debug\AxInterop.AXVLC.dll

     文件     530451  2014-07-23 07:29  播放RTMP流\Play_TRMPProject\Play_TRMPProject\bin\Debug\axvlc.dll

     文件      37376  2018-06-23 11:57  播放RTMP流\Play_TRMPProject\Play_TRMPProject\bin\Debug\Interop.AXVLC.dll

     文件     113171  2014-07-23 07:29  播放RTMP流\Play_TRMPProject\Play_TRMPProject\bin\Debug\libvlc.dll

     文件     214528  2018-06-23 11:57  播放RTMP流\Play_TRMPProject\Play_TRMPProject\bin\Debug\libvlc.lib

     文件    2396691  2014-07-23 07:29  播放RTMP流\Play_TRMPProject\Play_TRMPProject\bin\Debug\libvlccore.dll

     文件     503156  2018-06-23 11:57  播放RTMP流\Play_TRMPProject\Play_TRMPProject\bin\Debug\libvlccore.lib

     文件      15360  2018-06-23 11:58  播放RTMP流\Play_TRMPProject\Play_TRMPProject\bin\Debug\Play_TRMPProject.exe

     文件        189  2018-06-21 09:56  播放RTMP流\Play_TRMPProject\Play_TRMPProject\bin\Debug\Play_TRMPProject.exe.config

     文件      38400  2018-06-23 11:58  播放RTMP流\Play_TRMPProject\Play_TRMPProject\bin\Debug\Play_TRMPProject.pdb

     文件      22696  2018-06-29 15:41  播放RTMP流\Play_TRMPProject\Play_TRMPProject\bin\Debug\Play_TRMPProject.vshost.exe

     文件        189  2018-06-21 09:56  播放RTMP流\Play_TRMPProject\Play_TRMPProject\bin\Debug\Play_TRMPProject.vshost.exe.config

     文件        490  2017-04-11 11:11  播放RTMP流\Play_TRMPProject\Play_TRMPProject\bin\Debug\Play_TRMPProject.vshost.exe.manifest

     文件      13843  2014-07-23 07:29  播放RTMP流\Play_TRMPProject\Play_TRMPProject\bin\Debug\plugins\access\libaccess_attachment_plugin.dll

     文件     100371  2014-07-23 07:29  播放RTMP流\Play_TRMPProject\Play_TRMPProject\bin\Debug\plugins\access\libaccess_bd_plugin.dll

     文件      74259  2014-07-23 07:29  播放RTMP流\Play_TRMPProject\Play_TRMPProject\bin\Debug\plugins\access\libaccess_ftp_plugin.dll

     文件     116755  2014-07-23 07:29  播放RTMP流\Play_TRMPProject\Play_TRMPProject\bin\Debug\plugins\access\libaccess_http_plugin.dll

     文件      46611  2014-07-23 07:29  播放RTMP流\Play_TRMPProject\Play_TRMPProject\bin\Debug\plugins\access\libaccess_imem_plugin.dll

     文件      72211  2014-07-23 07:29  播放RTMP流\Play_TRMPProject\Play_TRMPProject\bin\Debug\plugins\access\libaccess_mms_plugin.dll

     文件      40979  2014-07-23 07:29  播放RTMP流\Play_TRMPProject\Play_TRMPProject\bin\Debug\plugins\access\libaccess_rar_plugin.dll

     文件      94739  2014-07-23 07:29  播放RTMP流\Play_TRMPProject\Play_TRMPProject\bin\Debug\plugins\access\libaccess_realrtsp_plugin.dll

     文件      39955  2014-07-23 07:29  播放RTMP流\Play_TRMPProject\Play_TRMPProject\bin\Debug\plugins\access\libaccess_smb_plugin.dll

     文件      14355  2014-07-23 07:29  播放RTMP流\Play_TRMPProject\Play_TRMPProject\bin\Debug\plugins\access\libaccess_tcp_plugin.dll

     文件      14355  2014-07-23 07:29  播放RTMP流\Play_TRMPProject\Play_TRMPProject\bin\Debug\plugins\access\libaccess_udp_plugin.dll

     文件      76307  2014-07-23 07:29  播放RTMP流\Play_TRMPProject\Play_TRMPProject\bin\Debug\plugins\access\libaccess_vdr_plugin.dll

     文件     159763  2014-07-23 07:29  播放RTMP流\Play_TRMPProject\Play_TRMPProject\bin\Debug\plugins\access\libcdda_plugin.dll

     文件     268307  2014-07-23 07:29  播放RTMP流\Play_TRMPProject\Play_TRMPProject\bin\Debug\plugins\access\libdshow_plugin.dll

     文件     246803  2014-07-23 07:29  播放RTMP流\Play_TRMPProject\Play_TRMPProject\bin\Debug\plugins\access\libdtv_plugin.dll

............此处省略364个文件信息

评论

共有 条评论