private void StopVideoIfRunning() { if (_theoraVideo != null && CanRunOnThisArchitecture) { _theoraVideo.Terminate(); _theoraVideo = null; } }
internal void Initialize() { Stop(); _fmodTheoraStream = new FmodTheoraStream(); _fmodTheoraStream.Initialize(); _theoraVideo = new TheoraVideo(); #if __ANDROID__ _fileName = ExtractVideoFromAPK(_fileName); #endif _theoraVideo.InitializeVideo(_fileName); _textureOne = new Texture(_theoraVideo.Width, _theoraVideo.Height, filterMin: TextureMinFilter.Linear); _textureTwo = new Texture(_theoraVideo.Width / 2, _theoraVideo.Height / 2, filterMin: TextureMinFilter.Linear); _textureThree = new Texture(_theoraVideo.Width / 2, _theoraVideo.Height / 2, filterMin: TextureMinFilter.Linear); }