unity视频插件分享

1.使用unity自带的Video Player播放

播放原理:不断的将视频解码转换成图像。

这种方法很吃CPU,视频分辨率太大就会越播越卡。

2.使用AVPro Video插件
利用这种方法播放录制好的视频时,在不同的PC主板上可能会存在播放不了的情况,这时大部分可以通过利用格式工厂转换视频的格式参数解决。

AVPro Video视频插件下载地址
3.使用UMP视频插件
UMP1.7.1视频插件
适用于Win Mac Linux 平台,但是可能是因为该版本时间问题,发现频繁的播放和关闭视频播放,会出现内存泄露的问题。
UMP2.0.3版
这版插件适用于Win, Mac, Linux, WebGL平台,解决了我之前遇到的内存泄露问题。
不过这两个视频插件只能用于PC端的视频播放,手机端的需要下载新的适用于手机端的视频插件。

  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 6
    评论
UMP is universal Media Framework plugin for Unity that based on Video LAN Codec (libVLC) native libraries. Support E-mail: unitydirectionkit@gmail.com Try: Demo (Win64) Demo (Mac64) Important: - Please read user manual before start use UMP; - For possibility to use external/installed VLC libraries you should install the regular VLC player (Unity 64-bit Editor == VLC player 64-bit); - Doesn't support Android & iOS platforms without UMP Pro (Android, iOS); - For correct work with UMP Pro (Android, iOS) package at first import UMP Pro (Android, iOS) package and after it import UMP Pro (Win, Mac, Linux) package in your project; Main features: + Included full C# source code; + Full compability with UMP Pro (Android, iOS); + Supported platforms: * Windows (x86, x86_64); * Mac (x86_64); * Linux (x86, x86_x64, Universal); * WebGL (experimantal) - supported media formats and browser compatibility Checked on next OS: Win - 7, 8, 8.1, 10; Mac - 10.10 Yosemite, 10.11 El Capitan; Linux - Ubuntu 16.04 LTS; WebGL - Firefox, Chrome. + Supported possibility to use external VLC libraries; + Supported possibility to easy switch subtitles (SPU) and audio tracks; + Supported Unity Audio Source component (only Win, Mac & Linux); + Supported transparent videos; + Supported possibility to get pixels of current video frame; + Supported video hosting services: * Youtube (don't support: everything private (private videos, bought movies, ...), don't support "Youtube Live Streams"); + Full compatibility with Unity Editor on supported platforms in different modes (fast native texture updates): Direct3D9, Direct3D11 and OpenGL; + Supported local video file playback, main formats (only for Win, Mac & Linux): 3GPP (.3gp), AVI (.avi), FLV (.flv), SWF (.swf), M4V (.m4v), Matroska (.mkv), Ogg Video (.ogg), QuickTime File Format (.mov, .qt), WebM (.webm), Windows Media Video (.wmv). + Supported main streaming media protocols (only for Win, Mac & Linux): HTTPS, HTTP, HLS, RTSP, RTMP.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值