/** @since Available in iOS 4.0 and later. */ public AVVideoSettings setPixelAspectRatio(AVPixelAspectRatio pixelAspectRatio) { NSDictionary<NSString, NSObject> val = new NSMutableDictionary<>(); val.put(AVPixelAspectRatio.HorizontalSpacing(), pixelAspectRatio.getHorizontalSpacing()); val.put(AVPixelAspectRatio.VerticalSpacing(), pixelAspectRatio.getVerticalSpacing()); set(Keys.PixelAspectRatio(), val); return this; }
/** @since Available in iOS 4.0 and later. */ public AVPixelAspectRatio getPixelAspectRatio() { if (has(Keys.PixelAspectRatio())) { NSDictionary<NSString, NSObject> val = (NSDictionary<NSString, NSObject>) get(Keys.PixelAspectRatio()); AVPixelAspectRatio result = new AVPixelAspectRatio( val.getLong(AVPixelAspectRatio.HorizontalSpacing(), 0), val.getLong(AVPixelAspectRatio.VerticalSpacing(), 0)); return result; } return null; }