C# 视频播放控件 wmp、vlc、aplayer

博客围绕C#开发媒体播放器展开,详细介绍了使用Windows Media Player、VLC和APlayer开发播放器的相关内容,包括WindowsMediaPlayer的深入解析、基于VLC自定义视频播放器以及用APlayer开发自制媒体播放器。

1、Windows Media Player

C#学习之路WindowsMediaPlayer详解- 知其所以然- 优快云博客

2、vlc

自定义基于 VLC 的视频播放器

how to use vlc.dotnet

// libvlc类库+vlc.dotnet
// vlc官网:http://www.videolan.org/
// vlc下载地址:
// http://get.videolan.org/vlc/3.0.7.1/win32/vlc-3.0.7.1-win32.exe
// http://get.videolan.org/vlc/3.0.7.1/win64/vlc-3.0.7.1-win64.exe

// 1、从安装好的vlc中的 “libvlc.dll、libvlccore.dll和plugins目录” 提取到debug目录下
// 2、通过nuget引用vlc.dotnet
// 3、执行如下代码
private Vlc.DotNet.Forms.VlcControl vlcControl = null;
public Form1()
{
    InitializeComponent();

    this.vlcControl = new Vlc.DotNet.Forms.VlcControl();
    this.vlcControl.BeginInit();
    // 一定要设置该属性
    this.vlcControl.VlcLibDirectory = new DirectoryInfo(Environment.CurrentDirectory);
    this.vlcControl.EndInit();
    this.vlcControl.Dock = DockStyle.Fill;
    this.Controls.Add(this.vlcControl);
}

3、APlayer

C#使用APlayer开发自制媒体播放器

// APlayer官网:http://aplayer.open.xunlei.com/
// APlayer SDK:http://aplayer.open.xunlei.com/APlayerSDK.zip
// APlayer 完整解码库:http://aplayer.open.xunlei.com/codecs.zip
// 1、APlayer.dll为包含APlayer的ActiveX控件
// 2、需要增加解码库时,将解码库拷贝到C:\Users\Public\Thunder Network\APlayer\codecs目录

 

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值