iPhone:在 UIView 上显示半透明视频? [英] iPhone: Display a semi-transparent video on top of a UIView?

查看:24
本文介绍了iPhone:在 UIView 上显示半透明视频?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在 UIView 上播放半透明视频(使用蓝屏创建)?我想知道如果 MPMoviePlayerViewController 无法做到这一点,它可能是通过使用 OpenGL ES 和视频纹理?

is it possible to have semi-transparent video (created with blue-screen) playing on top of a UIView ? I was wondering that in case that's not doable with the MPMoviePlayerViewController it might be by using OpenGL ES and a video texture ?

提前谢谢你,

F.

推荐答案

可以使用ffmpeg库.这是链接,您可以在其中下载一个非常好的示例链接

It is possible using the ffmpeg library. Here is the link, where you can download a very good example link

然后你只需要将 alpha 属性设置为 UIImageView.但我不确定性能,试试:)

Then you just have to set the alpha property to the UIImageView. But i'm not sure about performance, try :)

这篇关于iPhone:在 UIView 上显示半透明视频?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆