资源简介
C#调用libvlc插件实现播放器,可通过修改参数进行播放,网络串流,转码等功能,其中转码功能未进一步调试,如有有空调试者,还请告诉我,谢谢。
libvlc库需要自己下载.

代码片段和文件信息
using System;
using System.Runtime.InteropServices;
using System.Text;
using MediaStream;
namespace MediaStream
{
class Core
{
//coreHandle字段和属性
private CoreHandle coreHandle;
public CoreHandle CoreHandle
{
get { return coreHandle; }
}
//构造方法
public Core(string[] argv ref ExceptionStruct ex)
{
//coreHandle = libvlc_new(argv.Length argv ref ex);
byte[][] argvbytes = new byte[argv.Length][];
for (int i = 0; i < argv.Length; i++)
{
argvbytes[i] = Encoding.UTF8.GetBytes(argv[i]);
}
coreHandle = libvlc_new(argv.Length ReturnIntPtr(argvbytes argv.Length) ref ex);
}
//转换函数
private IntPtr ReturnIntPtr(byte[][] data int length)
{
IntPtr[] dataIntPtrArr = new IntPtr[length];
for (int i = 0; i < length; i++)
{
dataIntPtrArr[i] = Marshal.AllocHGlobal(data[i].Length * sizeof(byte));
Marshal.Copy(data[i] 0 dataIntPtrArr[i] data[i].Length);
}
IntPtr dataIntPtr = Marshal.AllocHGlobal(length * Marshal.SizeOf(typeof(IntPtr)));
Marshal.Copy(dataIntPtrArr 0 dataIntPtr length);
return dataIntPtr;
}
//Dll动态导入
[DllImport(“libvlc“)]
//private static extern CoreHandle libvlc_new(int argc string[] args ref ExceptionStruct ex);
private static extern CoreHandle libvlc_new(int argc IntPtr argv ref ExceptionStruct ex);
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1394 2010-06-03 11:18 MyOwnPla
文件 897 2010-05-26 13:33 MyOwnPla
文件 5554 2010-06-13 11:14 MyOwnPla
文件 9527 2010-05-25 15:29 MyOwnPla
文件 5817 2010-06-02 18:05 MyOwnPla
文件 896 2010-05-26 13:33 MyOwnPla
文件 299 2010-05-26 13:33 MyOwnPla
文件 921 2010-05-26 13:33 MyOwnPla
文件 1726 2010-05-26 13:33 MyOwnPla
文件 951 2010-05-26 13:33 MyOwnPla
文件 8519 2010-06-13 11:22 MyOwnPla
文件 3473 2010-05-24 18:29 MyOwnPla
文件 3644 2010-05-26 13:29 MyOwnPla
文件 842 2010-06-02 18:06 MyOwnPla
文件 28672 2010-06-13 11:22 MyOwnPla
文件 180 2010-06-02 18:06 MyOwnPla
文件 58880 2010-06-13 11:22 MyOwnPla
文件 180 2008-12-04 10:20 MyOwnPla
文件 296 2009-04-11 14:07 MyOwnPla
文件 1552 2010-06-13 11:26 MyOwnPla
文件 470 2008-12-04 10:11 MyOwnPla
文件 1148 2008-12-04 13:50 MyOwnPla
文件 2877 2008-12-04 10:11 MyOwnPla
文件 5612 2008-12-04 10:11 MyOwnPla
文件 1095 2008-12-04 10:11 MyOwnPla
文件 249 2008-12-04 10:11 MyOwnPla
文件 922 2008-12-04 10:11 MyOwnPla
..A..H. 21504 2009-04-11 14:07 MyOwnPla
目录 0 2010-05-20 17:32 MyOwnPla
目录 0 2010-06-13 11:22 MyOwnPla
............此处省略6个文件信息
相关资源
- asp.net C#购物车源代码
- C#实时网络流量监听源码
- C#百度地图源码
- Visual C#.2010从入门到精通配套源程序
- C# 软件版本更新
- C#屏幕软键盘源码,可以自己定制界面
- 智慧城市 智能家居 C# 源代码
- c#获取mobile手机的IMEI和IMSI
- C#实现简单QQ聊天程序
- 操作系统 模拟的 欢迎下载 C#版
- C#写的计算机性能监控程序
- 用C#实现邮件发送,有点类似于outlo
- MVC model层代码生成器 C#
- c#小型图书销售系统
- C# Socket Server Client 通讯应用 完整的服
- c# winform 自动登录 百度账户 源代码
- C#编写的16进制计算器
- C#TCP通信协议
- C# 数据表(Dataset)操作 合并 查询一
- C#语音识别系统speechsdk51,SpeechSDK51L
- 数据库备份还原工具1.0 C# 源码
-
[免费]xm
lDocument 节点遍历C# - EQ2008LEDc#开发实例
- DirectX.Capturec# winform 操作摄像头录像附
- c# 实现的最大最小距离方法对鸢尾花
- C#版保龄球记分代码
- C#自定义控件
- 基于c#的实验室设备管理系统621530
- C# 使用ListView控件实现图片浏览器(源
- C#简单窗体聊天程序
评论
共有 条评论