Пример #1
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;
 }
Пример #3
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;
 }
Пример #4
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;
 }
Пример #5
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;
 }
Пример #6
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;
 }
Пример #7
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;
 }
 public AVSampleRateConverterSettings setAudioQuality(AVAudioQuality audioQuality) {
   set(Keys.AudioQuality(), NSNumber.valueOf(audioQuality.value()));
   return this;
 }
Пример #9
0
 /** @since Available in iOS 7.0 and later. */
 public AVVideoSettings setAverageNonDroppableFrameRate(double averageNonDroppableFrameRate) {
   set(Keys.AverageNonDroppableFrameRate(), NSNumber.valueOf(averageNonDroppableFrameRate));
   return this;
 }
Пример #10
0
 /** @since Available in iOS 7.0 and later. */
 public AVVideoSettings setExpectedSourceFrameRate(double expectedSourceFrameRate) {
   set(Keys.ExpectedSourceFrameRate(), NSNumber.valueOf(expectedSourceFrameRate));
   return this;
 }
Пример #11
0
 /** @since Available in iOS 7.0 and later. */
 public AVVideoSettings setAllowsFrameReordering(boolean allowsFrameReordering) {
   set(Keys.AllowFrameReordering(), NSNumber.valueOf(allowsFrameReordering));
   return this;
 }
Пример #12
0
 /** @since Available in iOS 4.0 and later. */
 public AVVideoSettings setHeight(long height) {
   set(Keys.Height(), NSNumber.valueOf(height));
   return this;
 }
Пример #13
0
 /** @since Available in iOS 4.0 and later. */
 public AVVideoSettings setWidth(long width) {
   set(Keys.Width(), NSNumber.valueOf(width));
   return this;
 }
Пример #14
0
 /** @since Available in iOS 4.0 and later. */
 @WeaklyLinked
 public AVVideoSettings setCodec(CMVideoCodecType codec) {
   set(Keys.Codec(), NSNumber.valueOf(codec.value()));
   return this;
 }