public VideoPlayer()
        {
			_state = MediaState.Stopped;
			_game = Game.Instance;
            _platform = (iOSGamePlatform)_game.Services.GetService(typeof(iOSGamePlatform));
            if (_platform == null)
                throw new InvalidOperationException("No iOSGamePlatform instance was available");
        }
Exemplo n.º 2
0
        private void PlatformInitialize()
        {
            _game = Game.Instance;
            _platform = (iOSGamePlatform)_game.Services.GetService(typeof(iOSGamePlatform));

            if (_platform == null)
                throw new InvalidOperationException("No iOSGamePlatform instance was available");
        }
Exemplo n.º 3
0
 public VideoPlayer()
 {
     _state    = MediaState.Stopped;
     _game     = Game.Instance;
     _platform = (iOSGamePlatform)_game.Services.GetService(typeof(iOSGamePlatform));
     if (_platform == null)
     {
         throw new InvalidOperationException("No iOSGamePlatform instance was available");
     }
 }
Exemplo n.º 4
0
        private void PlatformInitialize()
        {
            _game     = Game.Instance;
            _platform = (iOSGamePlatform)_game.Services.GetService(typeof(iOSGamePlatform));

            if (_platform == null)
            {
                throw new InvalidOperationException("No iOSGamePlatform instance was available");
            }
        }