Ejemplo n.º 1
0
 /** @since Available in iOS 7.0 and later. */
 public boolean setPreferredDataSource(AVAudioSessionDataSourceDescription dataSource)
     throws NSErrorException {
   NSError.NSErrorPtr ptr = new NSError.NSErrorPtr();
   boolean result = setPreferredDataSource(dataSource, ptr);
   if (ptr.get() != null) {
     throw new NSErrorException(ptr.get());
   }
   return result;
 }
Ejemplo n.º 2
0
 /** @since Available in iOS 9.0 and later. */
 public NSData getPersistentContentKey(
     NSData keyVendorResponse, AVAssetResourceLoadingRequestOptions options)
     throws NSErrorException {
   NSError.NSErrorPtr ptr = new NSError.NSErrorPtr();
   NSData result = getPersistentContentKey(keyVendorResponse, options, ptr);
   if (ptr.get() != null) {
     throw new NSErrorException(ptr.get());
   }
   return result;
 }
Ejemplo n.º 3
0
 public NSData getStreamingContentKeyRequestData(
     NSData appIdentifier, NSData contentIdentifier, AVAssetResourceLoadingRequestOptions options)
     throws NSErrorException {
   NSError.NSErrorPtr ptr = new NSError.NSErrorPtr();
   NSData result =
       getStreamingContentKeyRequestData(appIdentifier, contentIdentifier, options, ptr);
   if (ptr.get() != null) {
     throw new NSErrorException(ptr.get());
   }
   return result;
 }