Essential Kit
Loading...
Searching...
No Matches
IMediaContent

Interface to be implemented by media content classes. More...

Public Member Functions

void AsTexture2D (EventCallback< Texture2D > onComplete)
 Converts the media content to a Texture2D
 
void AsRawMediaData (EventCallback< RawMediaData > onComplete)
 Converts the media content to a RawMediaData.
 
void AsFilePath (string destinationDirectory, string fileName, EventCallback< string > onComplete)
 Converts the media content to a file path.
 

Detailed Description

This interface provides methods to convert the media content to various formats.

Member Function Documentation

◆ AsTexture2D()

void AsTexture2D ( EventCallback< Texture2D > onComplete)

The callback will be invoked with the converted texture.

Parameters
onCompleteCallback to be invoked when the conversion is completed.

◆ AsRawMediaData()

void AsRawMediaData ( EventCallback< RawMediaData > onComplete)

The callback will be invoked with the converted raw media data.

Parameters
onCompleteCallback to be invoked when the conversion is completed.

◆ AsFilePath()

void AsFilePath ( string destinationDirectory,
string fileName,
EventCallback< string > onComplete )

The callback will be invoked with the converted file path.

Parameters
destinationDirectoryThe directory to which the file should be saved.
fileNameThe name of the file to be saved.
onCompleteCallback to be invoked when the conversion is completed.