Example #1
0
 /** @since Available in iOS 4.0 and later. */
 public long getWidth() {
   if (has(Keys.Width())) {
     NSNumber val = (NSNumber) get(Keys.Width());
     return val.longValue();
   }
   return 0;
 }
Example #2
0
 /** @since Available in iOS 7.0 and later. */
 public double getAverageNonDroppableFrameRate() {
   if (has(Keys.AverageNonDroppableFrameRate())) {
     NSNumber val = (NSNumber) get(Keys.AverageNonDroppableFrameRate());
     return val.doubleValue();
   }
   return 0;
 }
Example #3
0
 /** @since Available in iOS 7.0 and later. */
 public AVVideoH264EntropyMode getH264EntropyMode() {
   if (has(Keys.H264EntropyMode())) {
     NSString val = (NSString) get(Keys.H264EntropyMode());
     return AVVideoH264EntropyMode.valueOf(val);
   }
   return null;
 }
 public NSNetServiceErrorCode getErrorCode() {
   if (has(Keys.ErrorCode())) {
     NSNumber val = (NSNumber) get(Keys.ErrorCode());
     return NSNetServiceErrorCode.valueOf(val.longValue());
   }
   return null;
 }
Example #5
0
 /** @since Available in iOS 4.0 and later. */
 public AVVideoProfileLevel getProfileLevel() {
   if (has(Keys.ProfileLevel())) {
     NSString val = (NSString) get(Keys.ProfileLevel());
     return AVVideoProfileLevel.valueOf(val);
   }
   return null;
 }
 public String getErrorDomain() {
   if (has(Keys.ErrorDomain())) {
     NSString val = (NSString) get(Keys.ErrorDomain());
     return val.toString();
   }
   return null;
 }
Example #7
0
 /** @since Available in iOS 7.0 and later. */
 public boolean allowsFrameReordering() {
   if (has(Keys.AllowFrameReordering())) {
     NSNumber val = (NSNumber) get(Keys.AllowFrameReordering());
     return val.booleanValue();
   }
   return false;
 }
Example #8
0
 /** @since Available in iOS 4.3 and later. */
 public CGPath getPath() {
   if (has(Keys.Path())) {
     CGPath val = get(Keys.Path(), CGPath.class);
     return val;
   }
   return null;
 }
Example #9
0
 /** @since Available in iOS 5.0 and later. */
 public AVVideoScalingMode getScalingMode() {
   if (has(Keys.ScalingMode())) {
     NSString val = (NSString) get(Keys.ScalingMode());
     return AVVideoScalingMode.valueOf(val);
   }
   return null;
 }
 /** @since Available in iOS 7.0 and later. */
 public AVSampleRateConverterAlgorithm getAlgorithm() {
   if (has(Keys.Algorithm())) {
     NSString val = (NSString) get(Keys.Algorithm());
     return AVSampleRateConverterAlgorithm.valueOf(val);
   }
   return null;
 }
Example #11
0
 /** @since Available in iOS 4.0 and later. */
 public long getHeight() {
   if (has(Keys.Height())) {
     NSNumber val = (NSNumber) get(Keys.Height());
     return val.longValue();
   }
   return 0;
 }
 public AVAudioQuality getAudioQuality() {
   if (has(Keys.AudioQuality())) {
     NSNumber val = (NSNumber) get(Keys.AudioQuality());
     return AVAudioQuality.valueOf(val.longValue());
   }
   return null;
 }
Example #13
0
 /** @since Available in iOS 7.0 and later. */
 public double getExpectedSourceFrameRate() {
   if (has(Keys.ExpectedSourceFrameRate())) {
     NSNumber val = (NSNumber) get(Keys.ExpectedSourceFrameRate());
     return val.doubleValue();
   }
   return 0;
 }
Example #14
0
 /** @since Available in iOS 4.0 and later. */
 public AVVideoCleanAperture getCleanAperture() {
   if (has(Keys.CleanAperture())) {
     NSDictionary<NSString, NSObject> val =
         (NSDictionary<NSString, NSObject>) get(Keys.CleanAperture());
     return new AVVideoCleanAperture(val);
   }
   return null;
 }
Example #15
0
 /** @since Available in iOS 4.0 and later. */
 @WeaklyLinked
 public CMVideoCodecType getCodec() {
   if (has(Keys.Codec())) {
     NSNumber val = (NSNumber) get(Keys.Codec());
     return CMVideoCodecType.valueOf(val.longValue());
   }
   return null;
 }
Example #16
0
 /** @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;
 }
Example #17
0
 /** @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 7.0 and later. */
 public AVSampleRateConverterSettings setAlgorithm(AVSampleRateConverterAlgorithm algorithm) {
   set(Keys.Algorithm(), algorithm.value());
   return this;
 }
Example #19
0
 /** @since Available in iOS 4.0 and later. */
 public AVVideoSettings setHeight(long height) {
   set(Keys.Height(), NSNumber.valueOf(height));
   return this;
 }
Example #20
0
 /** @since Available in iOS 4.3 and later. */
 public CTFrameClippingPath setPath(CGPath path) {
   set(Keys.Path(), path);
   return this;
 }
Example #21
0
 /** @since Available in iOS 4.0 and later. */
 public AVVideoSettings setCleanAperture(AVVideoCleanAperture cleanAperture) {
   set(Keys.CleanAperture(), cleanAperture.getDictionary());
   return this;
 }
 public NSNetServiceErrorUserInfo setErrorDomain(String errorDomain) {
   set(Keys.ErrorDomain(), new NSString(errorDomain));
   return this;
 }
Example #23
0
 /** @since Available in iOS 5.0 and later. */
 public AVVideoSettings setScalingMode(AVVideoScalingMode scalingMode) {
   set(Keys.ScalingMode(), scalingMode.value());
   return this;
 }
 public NSNetServiceErrorUserInfo setErrorCode(NSNetServiceErrorCode errorCode) {
   set(Keys.ErrorCode(), NSNumber.valueOf(errorCode.value()));
   return this;
 }
Example #25
0
 /** @since Available in iOS 7.0 and later. */
 public AVVideoSettings setAllowsFrameReordering(boolean allowsFrameReordering) {
   set(Keys.AllowFrameReordering(), NSNumber.valueOf(allowsFrameReordering));
   return this;
 }
Example #26
0
 /** @since Available in iOS 7.0 and later. */
 public AVVideoSettings setAverageNonDroppableFrameRate(double averageNonDroppableFrameRate) {
   set(Keys.AverageNonDroppableFrameRate(), NSNumber.valueOf(averageNonDroppableFrameRate));
   return this;
 }
Example #27
0
 /** @since Available in iOS 4.0 and later. */
 public AVVideoSettings setProfileLevel(AVVideoProfileLevel profileLevel) {
   set(Keys.ProfileLevel(), profileLevel.value());
   return this;
 }
Example #28
0
 /** @since Available in iOS 7.0 and later. */
 public AVVideoSettings setH264EntropyMode(AVVideoH264EntropyMode h264EntropyMode) {
   set(Keys.H264EntropyMode(), h264EntropyMode.value());
   return this;
 }
 public AVSampleRateConverterSettings setAudioQuality(AVAudioQuality audioQuality) {
   set(Keys.AudioQuality(), NSNumber.valueOf(audioQuality.value()));
   return this;
 }
Example #30
0
 /** @since Available in iOS 7.0 and later. */
 public AVVideoSettings setExpectedSourceFrameRate(double expectedSourceFrameRate) {
   set(Keys.ExpectedSourceFrameRate(), NSNumber.valueOf(expectedSourceFrameRate));
   return this;
 }