C# Class Unity.Platform.IPhone.IPhoneMedia

Inheritance: Unity.Core.Media.AbstractMedia
Exibir arquivo Open project: Appverse/appverse-mobile Class Usage Examples

Public Properties

Property Type Description
ASSETS_PATH string

Public Methods

Method Description
GetCurrentMedia ( ) : Unity.Core.Media.MediaMetadata
GetMetadata ( string filePath ) : Unity.Core.Media.MediaMetadata
GetSnapshot ( ) : Unity.Core.Media.MediaMetadata
GetState ( ) : MediaState
Pause ( ) : bool
Play ( string filePath ) : bool
PlayStream ( string url ) : bool
SeekPosition ( long position ) : long
StartAudioRecording ( string outputFilePath ) : bool
StartVideoRecording ( string outputFilePath ) : bool
Stop ( ) : bool
StopAudioRecording ( ) : bool
StopVideoRecording ( ) : bool
TakeSnapshot ( ) : Unity.Core.Media.MediaMetadata
TakeSnapshotWithOptions ( CameraOptions options ) : void

Private Methods

Method Description
GetImageMediaTitle ( string assetUrl ) : string
GetMetadataFromUrl ( NSUrl nsUrl ) : Unity.Core.Media.MediaMetadata
GetNSUrlFromPath ( string path, bool localPath ) : NSUrl
HandleCameraFinishedPickingMedia ( object sender, UIImagePickerMediaPickedEventArgs e ) : void
HandleImagePickerControllerCanceled ( object sender, EventArgs e ) : void
HandleImagePickerControllerFinishedPickingImage ( object sender, UIImagePickerImagePickedEventArgs e ) : void
HandleImagePickerControllerFinishedPickingMedia ( object sender, UIImagePickerMediaPickedEventArgs e ) : void
HandlePlayerFinishedPlaying ( object sender, AVStatusEventArgs e ) : void
PlayNSUrl ( NSUrl nsUrl ) : bool

Plaies the NS URL.

ResizeImage ( byte imageData, nfloat width, nfloat height ) : byte[]
ShowCameraView ( ) : void
ShowImagePickerView ( ) : void
ShowMediaPlayer ( object url ) : void

Method Details

GetCurrentMedia() public method

public GetCurrentMedia ( ) : Unity.Core.Media.MediaMetadata
return Unity.Core.Media.MediaMetadata

GetMetadata() public method

public GetMetadata ( string filePath ) : Unity.Core.Media.MediaMetadata
filePath string
return Unity.Core.Media.MediaMetadata

GetSnapshot() public method

public GetSnapshot ( ) : Unity.Core.Media.MediaMetadata
return Unity.Core.Media.MediaMetadata

GetState() public method

public GetState ( ) : MediaState
return MediaState

Pause() public method

public Pause ( ) : bool
return bool

Play() public method

public Play ( string filePath ) : bool
filePath string
return bool

PlayStream() public method

public PlayStream ( string url ) : bool
url string
return bool

SeekPosition() public method

public SeekPosition ( long position ) : long
position long
return long

StartAudioRecording() public method

public StartAudioRecording ( string outputFilePath ) : bool
outputFilePath string
return bool

StartVideoRecording() public method

public StartVideoRecording ( string outputFilePath ) : bool
outputFilePath string
return bool

Stop() public method

public Stop ( ) : bool
return bool

StopAudioRecording() public method

public StopAudioRecording ( ) : bool
return bool

StopVideoRecording() public method

public StopVideoRecording ( ) : bool
return bool

TakeSnapshot() public method

public TakeSnapshot ( ) : Unity.Core.Media.MediaMetadata
return Unity.Core.Media.MediaMetadata

TakeSnapshotWithOptions() public method

public TakeSnapshotWithOptions ( CameraOptions options ) : void
options CameraOptions
return void

Property Details

ASSETS_PATH public_oe static_oe property

public static string ASSETS_PATH
return string