问题标签 [ccvideoplayer]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
video - CCVideoPlayer 无法正常工作
我已经将扩展“CCVideoPlayer”“导入”到我的 cocos2d 项目中,我想使用它来在我的游戏开始之前显示视频闪屏(我知道很多人讨厌它,但我不在乎)。但是,网上的教程不多,所以你们几乎是我最后的手段。我已将我的视频 - 1280 x 720 Quicktime 电影 (671 MB) - 正确复制到我的项目中,当我打电话时:
我看到黑屏并且电影的声音可以正常播放,但是没有视频。所以我该怎么做 ?
旁注:我已经实现了委托方法,并且我的班级遵守CCVideoPlayerDelegate
.
cocos2d-iphone - Cocos2d:如何在 CCLayer 的后台播放视频
我想让视频在后台播放,文字标签在前面,运行以下代码,视频正在播放,但文字标签不显示!
iphone - CCVideoPlayer play movie finished get Screen flicker,what's wrong with it?
I use CCVideoPlayer to play video. and when video finished the screen sometime get a Screen flicker. it look like the videoView quit animation.
Does someone know what's wrong with it?
iphone - 如何使用 CCVideoPlayer 类保留视频的最后一个视频帧?
我在我的 iPhone/iPad 应用程序之一中使用 CCVideoPlayer 类以各种类型的手势播放视频。截至目前,当视频结束时,我将视频替换为视频最后一帧的 jpeg 图像。
无论如何使用它可以保留视频的最后一帧,这样我就不必每次都用 jpeg 替换?
video - 是否可以使用“CCVideoPlayer”淡出视频
我正在使用“CCVideoPlayer”在 cocos2d 中播放视频,我想知道是否有办法将视频淡出到最后?我所说的淡出视频的意思是,通常视频最后会突然停止,我需要能够慢慢淡出它,而不是视频突然结束。
uiview - 如何将 UIView 与 CCLayer cocos2d 一起使用?
我正在 cocos2d 中使用 CCVideoPlayer 播放一个短视频,最后我正在捕获视频的最后一帧,并使用 UIView 在屏幕上显示它,因为尝试在 CCLayer 上绘制它会使图像显示出来颜色略有不同。我想这是因为在 cocos2d 中绘制事物的方式与在 UIView 上绘制的方式不同。所以我需要一些方法来使用 UIView 将图像保留在屏幕上,并且我需要能够在这个视图之上绘制精灵等。所以我的问题是,有没有办法让 CCLayer 透明,以便仍然可以看到包含图像的 UIView,然后使用 CCLayer 在图像顶部绘制?(PS我用的是cocos2d v1.1.0-beta2b)
objective-c - Apple Mach-O Linker Error 重复架构 armv7 CCVideoPlayer cocos2d 扩展 (cocos2d v2.0)
我正在尝试解决此链接器错误问题,但我毫不怀疑,查找类重复项或其他内容,但目前尚不清楚。
有人遇到过这个问题吗?
在 cocos2d 论坛上看到了这篇文章,但注释掉宏并没有帮助我......
重复符号 _OBJC_METACLASS_$_CCVideoPlayerImpl 在:/Users/username/Library/Developer/Xcode/DerivedData/ProjectName-cejlpqfnlpectralthclvyvltqkk/Build/Intermediates/ProjectName.build/Debug-iphoneos/ProjectName.build/Objects-normal/armv7/CCVideoPlayer-9962022C0BCB5653。 o /Users/username/Library/Developer/Xcode/DerivedData/ProjectName-cejlpqfnlpectralthclvyvltqkk/Build/Intermediates/ProjectName.build/Debug-iphoneos/ProjectName.build/Objects-normal/armv7/CCVideoPlayer-A41A32B34B96CC5E.o 重复符号_OBJC_CLASS_$_CCVideoPlayerImpl在:/Users/username/Library/Developer/Xcode/DerivedData/ProjectName-cejlpqfnlpectralthclvyvltqkk/Build/Intermediates/ProjectName.build/Debug-iphoneos/ProjectName.build/Objects-normal/armv7/CCVideoPlayer-9962022C0BCB5653。o /Users/username/Library/Developer/Xcode/DerivedData/ProjectName-cejlpqfnlpectralthclvyvltqkk/Build/Intermediates/ProjectName.build/Debug-iphoneos/ProjectName.build/Objects-normal/armv7/CCVideoPlayer-A41A32B34B96CC5E.o 重复符号_OBJC_CLASS_$_CCVideoPlayer在:/Users/username/Library/Developer/Xcode/DerivedData/ProjectName-cejlpqfnlpectralthclvyvltqkk/Build/Intermediates/ProjectName.build/Debug-iphoneos/ProjectName.build/Objects-normal/armv7/CCVideoPlayer-9962022C0BCB5653.o /Users/username /Library/Developer/Xcode/DerivedData/ProjectName-cejlpqfnlpectralthclvyvltqkk/Build/Intermediates/ProjectName.build/Debug-iphoneos/ProjectName.build/Objects-normal/armv7/CCVideoPlayer-A41A32B34B96CC5E.o重复符号_OBJC_METACLASS_$_CCVideoPlayer在:/Users/username/Library/Developer/Xcode/DerivedData/ProjectName-cejlpqfnlpectralthclvyvltqkk/Build/Intermediates/ProjectName.build/Debug-iphoneos/ProjectName.build/Objects-normal/armv7/CCVideoPlayer-9962022C0BCB5653.o /Users/username/Library /Developer/Xcode/DerivedData/ProjectName-cejlpqfnlpectralthclvyvltqkk/Build/Intermediates/ProjectName.build/Debug-iphoneos/ProjectName.build/Objects-normal/armv7/CCVideoPlayer-A41A32B34B96CC5E.o 重复符号_OBJC_IVAR_$_CCVideoPlayerImpliOS._theMovie in:/Users/用户名/库/开发人员/Xcode/DerivedData/ProjectName-cejlpqfnlpectralthclvyvltqkk/Build/Intermediates/ProjectName.build/Debug-iphoneos/ProjectName.build/Objects-normal/armv7/CCVideoPlayerImpliOS-2E61FAAA0338656。o /Users/username/Library/Developer/Xcode/DerivedData/ProjectName-cejlpqfnlpectralthclvyvltqkk/Build/Intermediates/ProjectName.build/Debug-iphoneos/ProjectName.build/Objects-normal/armv7/CCVideoPlayerImpliOS-D9E5031DFFEFC61.o 重复符号_OBJC_IVAR_$_CCVideoPlayerImpliOS ._videoOverlayView 在:/Users/username/Library/Developer/Xcode/DerivedData/ProjectName-cejlpqfnlpectralthclvyvltqkk/Build/Intermediates/ProjectName.build/Debug-iphoneos/ProjectName.build/Objects-normal/armv7/CCVideoPlayerImpliOS-2E61FAAA0338656.o /Users /username/Library/Developer/Xcode/DerivedData/ProjectName-cejlpqfnlpectralthclvyvltqkk/Build/Intermediates/ProjectName.build/Debug-iphoneos/ProjectName.build/Objects-normal/armv7/CCVideoPlayerImpliOS-D9E5031DFFEFC61.o重复符号_OBJC_IVAR_$_CCVideoPlayerImpliOS._delegate :/Users/username/Library/Developer/Xcode/DerivedData/ProjectName-cejlpqfnlpectralthclvyvltqkk/Build/Intermediates/ProjectName.build/Debug-iphoneos/ProjectName.build/Objects-normal/armv7/CCVideoPlayerImpliOS-2E61FAAA0338656.o /Users/username/Library /Developer/Xcode/DerivedData/ProjectName-cejlpqfnlpectralthclvyvltqkk/Build/Intermediates/ProjectName.build/Debug-iphoneos/ProjectName.build/Objects-normal/armv7/CCVideoPlayerImpliOS-D9E5031DFFEFC61.o重复符号_OBJC_IVAR_$_CCVideoPlayerImpliOS._playing in:/Users/用户名/库/开发人员/Xcode/DerivedData/ProjectName-cejlpqfnlpectralthclvyvltqkk/Build/Intermediates/ProjectName.build/Debug-iphoneos/ProjectName.build/Objects-normal/armv7/CCVideoPlayerImpliOS-2E61FAAA0338656。o /Users/username/Library/Developer/Xcode/DerivedData/ProjectName-cejlpqfnlpectralthclvyvltqkk/Build/Intermediates/ProjectName.build/Debug-iphoneos/ProjectName.build/Objects-normal/armv7/CCVideoPlayerImpliOS-D9E5031DFFEFC61.o 重复符号_OBJC_IVAR_$_CCVideoPlayerImpliOS .no跳过:/Users/username/Library/Developer/Xcode/DerivedData/ProjectName-cejlpqfnlpectralthclvyvltqkk/Build/Intermediates/ProjectName.build/Debug-iphoneos/ProjectName.build/Objects-normal/armv7/CCVideoPlayerImpliOS-2E61FAAA0338656.o /Users /username/Library/Developer/Xcode/DerivedData/ProjectName-cejlpqfnlpectralthclvyvltqkk/Build/Intermediates/ProjectName.build/Debug-iphoneos/ProjectName.build/Objects-normal/armv7/CCVideoPlayerImpliOS-D9E5031DFFEFC61.o重复符号_OBJC_CLASS_$_CCVideoPlayerImpliOS在:/Users/username/Library/Developer/Xcode/DerivedData/ProjectName-cejlpqfnlpectralthclvyvltqkk/Build/Intermediates/ProjectName.build/Debug-iphoneos/ProjectName.build/Objects-normal/armv7/CCVideoPlayerImpliOS-2E61FAAA0338656.o /Users/username/Library /Developer/Xcode/DerivedData/ProjectName-cejlpqfnlpectralthclvyvltqkk/Build/Intermediates/ProjectName.build/Debug-iphoneos/ProjectName.build/Objects-normal/armv7/CCVideoPlayerImpliOS-D9E5031DFFEFC61.o 重复符号_OBJC_METACLASS_$_CCVideoPlayerImpliOS 在:/Users/username/库/开发人员/Xcode/DerivedData/ProjectName-cejlpqfnlpectralthclvyvltqkk/Build/Intermediates/ProjectName.build/Debug-iphoneos/ProjectName.build/Objects-normal/armv7/CCVideoPlayerImpliOS-2E61FAAA0338656。o /Users/username/Library/Developer/Xcode/DerivedData/ProjectName-cejlpqfnlpectralthclvyvltqkk/Build/Intermediates/ProjectName.build/Debug-iphoneos/ProjectName.build/Objects-normal/armv7/CCVideoPlayerImpliOS-D9E5031DFFEFC61.o 重复符号_OBJC_IVAR_$_VideoOverlayView ._touch 在:/Users/username/Library/Developer/Xcode/DerivedData/ProjectName-cejlpqfnlpectralthclvyvltqkk/Build/Intermediates/ProjectName.build/Debug-iphoneos/ProjectName.build/Objects-normal/armv7/videoOverlayView-3F7278265D6C165F.o /Users /username/Library/Developer/Xcode/DerivedData/ProjectName-cejlpqfnlpectralthclvyvltqkk/Build/Intermediates/ProjectName.build/Debug-iphoneos/ProjectName.build/Objects-normal/armv7/videoOverlayView-24E20B177AADBD4D.o重复符号_OBJC_CLASS_$_VideoOverlayView在:/Users/username/Library/Developer/Xcode/DerivedData/ProjectName-cejlpqfnlpectralthclvyvltqkk/Build/Intermediates/ProjectName.build/Debug-iphoneos/ProjectName.build/Objects-normal/armv7/videoOverlayView-3F7278265D6C165F.o /Users/username/Library /Developer/Xcode/DerivedData/ProjectName-cejlpqfnlpectralthclvyvltqkk/Build/Intermediates/ProjectName.build/Debug-iphoneos/ProjectName.build/Objects-normal/armv7/videoOverlayView-24E20B177AADBD4D.o 重复符号_OBJC_METACLASS_$_VideoOverlayView 在:/Users/username/库/开发人员/Xcode/DerivedData/ProjectName-cejlpqfnlpectralthclvyvltqkk/Build/Intermediates/ProjectName.build/Debug-iphoneos/ProjectName.build/Objects-normal/armv7/videoOverlayView-3F7278265D6C165F。o /Users/username/Library/Developer/Xcode/DerivedData/ProjectName-cejlpqfnlpectralthclvyvltqkk/Build/Intermediates/ProjectName.build/Debug-iphoneos/ProjectName.build/Objects-normal/armv7/videoOverlayView-24E20B177AADBD4D.o ld:22个重复符号对于架构 armv7 clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)
video - CCVideoPlayer 有延迟?
我正在使用 CCVideoPlayer 在我的游戏中播放视频,但它在播放之前有一点延迟,这会导致在播放之前显示黑屏。有没有办法预加载视频或设置 CCVideoPlayer 以消除这种延迟。这是我使用它的方式,我在启动时有一个加载场景,当我的所有资源都加载完毕后,我告诉它切换到主菜单,如下所示:
然后这就是我在主菜单中播放电影的方式:
我可以做些什么不同的事情来让视频立即开始播放,而不是在黑屏的情况下稍微延迟?