体育资讯网

您现在的位置是:首页 > 分类12 > 正文

分类12

vlc源码读视频流播放(vlc建立视频流)

hacker2022-06-14 00:28:22分类1245
本文目录一览:1、有谁用过VLC观看视频流?怎么观看IPV6地址的?

本文目录一览:

有谁用过VLC观看视频流? 怎么观看IPV6地址的?

回复

这样子不行vlc源码读视频流播放的啊,

vlc源码读视频流播放vlc源码读视频流播放的板子IPV6

IP

为2001802d211fe256b4

,

如果我的步骤和IPV4的一样,

VLC就显示无法打开,我在想是不是哪里没有配置对,

我在网上看到一份资料上面的VLC有下面页面:可是我下的VLC最新版本1.0.5没有它的页面,我也搞不懂我打开网络串流后,选择RTSP,

和其vlc源码读视频流播放他的那些RTP,UDP,HTTP选项有什么区别啊,我把我的IP地址每个选项都试过vlc源码读视频流播放了,都不行啊,大家帮我看看咯.谢谢!!

C#开发 怎么用VLC播放视频byte[] 这个问题解决了吗

// 创建一个libvlc实例,它是引用计数的

[DllImport("libvlc", CallingConvention = CallingConvention.StdCall, ExactSpelling = true)]

[SuppressUnmanagedCodeSecurity]

private static extern IntPtr libvlc_new(int argc, IntPtr argv);

// 释放libvlc实例

[DllImport("libvlc", CallingConvention = CallingConvention.StdCall, ExactSpelling = true)]

[SuppressUnmanagedCodeSecurity]

public static extern void libvlc_release(IntPtr libvlc_instance);

[DllImport("libvlc", CallingConvention = CallingConvention.StdCall, ExactSpelling = true)]

[SuppressUnmanagedCodeSecurity]

public static extern String libvlc_get_version();

// 从视频来源(例如Url)构建一个libvlc_meida

[DllImport("libvlc", CallingConvention = CallingConvention.StdCall, ExactSpelling = true)]

[SuppressUnmanagedCodeSecurity]

private static extern IntPtr libvlc_media_new_location(IntPtr libvlc_instance, IntPtr path);

// 从本地文件路径构建一个libvlc_media

[DllImport("libvlc", CallingConvention = CallingConvention.StdCall, ExactSpelling = true)]

[SuppressUnmanagedCodeSecurity]

private static extern IntPtr libvlc_media_new_path(IntPtr libvlc_instance, IntPtr path);

[DllImport("libvlc", CallingConvention = CallingConvention.StdCall, ExactSpelling = true)]

[SuppressUnmanagedCodeSecurity]

public static extern void libvlc_media_release(IntPtr libvlc_media_inst);

// 创建libvlc_media_player(播放核心)

[DllImport("libvlc", CallingConvention = CallingConvention.StdCall, ExactSpelling = true)]

[SuppressUnmanagedCodeSecurity]

public static extern IntPtr libvlc_media_player_new(IntPtr libvlc_instance);

// 将视频(libvlc_media)绑定到播放器上

[DllImport("libvlc", CallingConvention = CallingConvention.StdCall, ExactSpelling = true)]

[SuppressUnmanagedCodeSecurity]

public static extern void libvlc_media_player_set_media(IntPtr libvlc_media_player, IntPtr libvlc_media);

// 设置图像输出的窗口

[DllImport("libvlc", CallingConvention = CallingConvention.StdCall, ExactSpelling = true)]

[SuppressUnmanagedCodeSecurity]

public static extern void libvlc_media_player_set_hwnd(IntPtr libvlc_mediaplayer, Int32 drawable);

[DllImport("libvlc", CallingConvention = CallingConvention.StdCall, ExactSpelling = true)]

[SuppressUnmanagedCodeSecurity]

public static extern void libvlc_media_player_play(IntPtr libvlc_mediaplayer);

[DllImport("libvlc", CallingConvention = CallingConvention.StdCall, ExactSpelling = true)]

[SuppressUnmanagedCodeSecurity]

public static extern void libvlc_media_player_pause(IntPtr libvlc_mediaplayer);

[DllImport("libvlc", CallingConvention = CallingConvention.StdCall, ExactSpelling = true)]

[SuppressUnmanagedCodeSecurity]

public static extern void libvlc_media_player_stop(IntPtr libvlc_mediaplayer);

// 解析视频资源的媒体信息(如时长等)

[DllImport("libvlc", CallingConvention = CallingConvention.StdCall, ExactSpelling = true)]

[SuppressUnmanagedCodeSecurity]

public static extern void libvlc_media_parse(IntPtr libvlc_media);

// 返回视频的时长(必须先调用libvlc_media_parse之后,该函数才会生效)

[DllImport("libvlc", CallingConvention = CallingConvention.StdCall, ExactSpelling = true)]

[SuppressUnmanagedCodeSecurity]

public static extern Int64 libvlc_media_get_duration(IntPtr libvlc_media);

// 当前播放的时间

[DllImport("libvlc", CallingConvention = CallingConvention.StdCall, ExactSpelling = true)]

[SuppressUnmanagedCodeSecurity]

public static extern Int64 libvlc_media_player_get_time(IntPtr libvlc_mediaplayer);

// 设置播放位置(拖动)

[DllImport("libvlc", CallingConvention = CallingConvention.StdCall, ExactSpelling = true)]

[SuppressUnmanagedCodeSecurity]

public static extern void libvlc_media_player_set_time(IntPtr libvlc_mediaplayer, Int64 time);

[DllImport("libvlc", CallingConvention = CallingConvention.StdCall, ExactSpelling = true)]

[SuppressUnmanagedCodeSecurity]

public static extern void libvlc_media_player_release(IntPtr libvlc_mediaplayer);

// 获取和设置音量

[DllImport("libvlc", CallingConvention = CallingConvention.StdCall, ExactSpelling = true)]

[SuppressUnmanagedCodeSecurity]

public static extern int libvlc_audio_get_volume(IntPtr libvlc_media_player);

[DllImport("libvlc", CallingConvention = CallingConvention.StdCall, ExactSpelling = true)]

[SuppressUnmanagedCodeSecurity]

public static extern void libvlc_audio_set_volume(IntPtr libvlc_media_player, int volume);

// 设置全屏

[DllImport("libvlc", CallingConvention = CallingConvention.StdCall, ExactSpelling = true)]

[SuppressUnmanagedCodeSecurity]

public static extern void libvlc_set_fullscreen(IntPtr libvlc_media_player, int isFullScreen);

如何使用vlc看在线视频?

vlc看在线视频很简单,只要是支持的格式,把地址粘贴上去就可以看。下载好像还不行只能在线看。比如网络电视、在线电影、在线视频等。

如何用VLC播放网络流媒体

1、在安装了这个软件的电脑上点击开始了,点击这个所有程序了。

2、点击图一的软件,点击文件。

3、点击这个打开流媒体,在图二这里粘贴播放的地址,然后点击播放即可。

4、如果网络不好,那么可以点击显示这里,把缓存设置得大一点,然后就可以流畅播放视频了的。

求vlc播放器的源代码

最新版源码下载地址vlc源码读视频流播放

但是官方不支持使用VC编译vlc源码读视频流播放,并且不建议使用VCvlc源码读视频流播放,移植难度很大。

官方支持vlc源码读视频流播放的是MingW或者Cygwin,也就是GCC的Windows版。编译方法见官方Wikivlc源码读视频流播放

-

-

发表评论

评论列表

  • 鸠骨雾敛(2022-06-14 11:53:13)回复取消回复

    get_version(); // 从视频来源(例如Url)构建一个libvlc_meida [DllImport("libvlc", CallingConvention = CallingConvention