Video Playback using HUD_3D

#1
Hello,
I'm trying to play a video using HUD_3D.I customized the source of hud _3d flash file.

Code: Select all

// video transmission function playVideo(_videoFile:String) { Tweener.addTween(VideoPlayer, {_alpha:100, time:1, transition:"easeOutQuart" } ); MoviePath = _videoFile; VideoPlayer.VideoPlayer.SelectAudioChannel(0); // disable sound! VideoPlayer.VideoPlayer._visible = true; VideoPlayer.VideoPlayer.load(MoviePath); VideoPlayer.VideoPlayer.Play(); //trace("VIDEO PLAYER DISABLED!"); fscommand("onPlay"); } //----------------------------- video ------------------------------ var NetC = new NetConnection(); NetC.connect(null); var MoviePath:String = ""; _global.eVideoStatus_PrePlaying = 0; _global.eVideoStatus_Playing = 1; _global.eVideoStatus_Stopped = 2; _global.eVideoStatus_Finished = 3; _global.eVideoStatus_Error = 4; var m_status:Number = eVideoStatus_PrePlaying; function HandleStop( bVideoFinished:Boolean ) { Tweener.addTween(VideoPlayer, {_alpha:0, time:1, transition:"easeOutQuart" } ); VideoPlayer.VideoPlayer._visible = false; VideoPlayer.VideoPlayer.UnloadVideo(); fscommand("onVideoStop"); } VideoPlayer._alpha = 0;
and change some relevant changes to HUD.xml file.My problem is how to play a video using this option?I used UI:Functions:HUD3D:PlayVideo node and gave a .usm file as the movie path.But it didn't work as I hope.But other HUD elements works fine.Are there any way to do this?Please help me on this guys :)
Vishwajith Weerasinghe

Re: Video Playback using HUD_3D

#3
Do you have a Scaleform Video license? Do you have the necessary files from Crytek to use it? USM playback doesnt work right out of the box. Its a very expensive license.

Better look at CEV Player on the Marketplace.
Oh I don't have it.Is it usm format only supported?Can we play any other video format like.bik?I just tried to play a video on the players hud because I saw the video player option in Flashasset source file at github.
Vishwajith Weerasinghe

Re: Video Playback using HUD_3D

#4
Forget USM. CEV Player plays an open-source, royalty-free WebM format.
https://www.webmproject.org/about/

Use this instead : https://www.cryengine.com/marketplace/cryvideo-plugin

Not sure if this supports 5.5.2 though, havn't checked yet.
https://github.com/afrostalin/CEVPlayer ... ce_5.5.zip

Wiki : https://github.com/afrostalin/CEVPlayer/wiki

The LibAV lib that CEVPlayer uses is under LGPL v2.1
https://www.gnu.org/licenses/

Re: Video Playback using HUD_3D

#5
Forget USM. CEV Player plays an open-source, royalty-free WebM format.
https://www.webmproject.org/about/

Use this instead : https://www.cryengine.com/marketplace/cryvideo-plugin

Not sure if this supports 5.5.2 though, havn't checked yet.
https://github.com/afrostalin/CEVPlayer ... ce_5.5.zip

Wiki : https://github.com/afrostalin/CEVPlayer/wiki

The LibAV lib that CEVPlayer uses is under LGPL v2.1
https://www.gnu.org/licenses/
Great, thanks for letting me know that.It is easy to play videos with this CEVPlayer.Thanks again lavizh :)
Vishwajith Weerasinghe

Who is online

Users browsing this forum: No registered users and 1 guest

cron