public void SetAspectMode(VideoAspectMode aspectMode)
        {
            switch (aspectMode)
            {
            case VideoAspectMode.None:
                _videoLayer.VideoGravity = AVLayerVideoGravity.Resize;
                break;

            case VideoAspectMode.AspectFit:
                _videoLayer.VideoGravity = AVLayerVideoGravity.ResizeAspect;
                break;

            case VideoAspectMode.AspectFill:
                _videoLayer.VideoGravity = AVLayerVideoGravity.ResizeAspectFill;
                break;

            default:
                throw new ArgumentOutOfRangeException();
            }
            AspectMode = aspectMode;
        }
 public void SetAspectMode(VideoAspectMode aspectMode)
 {
     throw new NotImplementedException();
 }
Beispiel #3
0
 public void SetAspectMode(VideoAspectMode aspectMode)
 {
 }