AVAudioPlayer.FromUrl Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
FromUrl(NSUrl) |
Creates a new instance of the AVAudioPlayer. |
FromUrl(NSUrl, NSError) |
Creates a new instance of the AVAudioPlayer. |
FromUrl(NSUrl)
Creates a new instance of the AVAudioPlayer.
public static AVFoundation.AVAudioPlayer FromUrl (Foundation.NSUrl url);
static member FromUrl : Foundation.NSUrl -> AVFoundation.AVAudioPlayer
Parameters
- url
- NSUrl
Points to the file location to play
Returns
Null on error, with or an instance of the player on success.
Applies to
FromUrl(NSUrl, NSError)
Creates a new instance of the AVAudioPlayer.
public static AVFoundation.AVAudioPlayer FromUrl (Foundation.NSUrl url, out Foundation.NSError error);
static member FromUrl : Foundation.NSUrl * -> AVFoundation.AVAudioPlayer
Parameters
- url
- NSUrl
Points to the file location to play
- error
- NSError
Return value for error.
Returns
Null on error with the details stored on the error parameter, or an instance of the player on success.