Wasabi ExpressPlay SDK for Desktop Systems
1.23.0
|
Wasabi Media File API. More...
Go to the source code of this file.
Data Structures | |
struct | WSB_AudioMediaInfo |
Information about audio media. More... | |
struct | WSB_Hdr10Info |
Information about HDR10. More... | |
struct | WSB_DolbyVisionProfileLevelInfo |
Infomation about Dolby Vision profile and level. More... | |
struct | WSB_DolbyVisionInfo |
Information about Dolby Vision. More... | |
struct | WSB_HdrInfo |
Information about High Dynamic Range (HDR). More... | |
struct | WSB_VideoMediaInfo |
Information about video media. More... | |
struct | WSB_MediaInfo |
Media information about a media file or a track within the media file. More... | |
struct | WSB_FileProgress |
File progress information. More... | |
Macros | |
#define | WSB_CONTENT_TYPE_VIDEO_MP4 "video/mp4" |
Identifiers for mime type. More... | |
#define | WSB_CONTENT_TYPE_VIDEO_M4V "video/m4v" |
#define | WSB_CONTENT_TYPE_AUDIO_MP4 "audio/mp4" |
#define | WSB_CONTENT_TYPE_VIDEO_MPEG2TS "video/MP2T" |
#define | WSB_CONTENT_TYPE_DASH "application/dash+xml" |
#define | WSB_CONTENT_TYPE_HLS "application/vnd.apple.mpegurl" |
#define | WSB_CONTENT_TYPE_DCF "application/vnd.oma.drm.dcf" |
#define | WSB_CONTENT_TYPE_DECE "video/vnd.dece.mp4" |
#define | WSB_CONTENT_TYPE_SUBTITLE_VTT "text/vtt" |
#define | WSB_CONTENT_TYPE_SUBTITLE_MP4 "application/mp4" |
#define | WSB_CONTENT_TYPE_SUBTITLE_TTML "application/ttml+xml" |
#define | WSB_MEDIA_FILE_METADATA_FILTER_MINIMAL_SET 1 |
Identifiers for metadata filters. More... | |
#define | WSB_MEDIA_FILE_METADATA_FILTER_BASIC_SET 2 |
#define | WSB_MEDIA_FILE_METADATA_FILTER_EXTENDED_SET 4 |
#define | WSB_MEDIA_FILE_METADATA_FILTER_LICENSE 8 |
#define | WSB_MEDIA_FILE_METADATA_FILTER_ALL 0xFFFFFFFF |
#define | WSB_MEDIA_FILE_FLAG_PROGRESS_CAN_START 1 |
Identifiers for file progress flags. More... | |
#define | WSB_FILE_METADATA_NAME "Name" /* string */ |
Media file metadata items and their corresponding data types. More... | |
#define | WSB_FILE_METADATA_ARTIST "Artist" /* string */ |
#define | WSB_FILE_METADATA_ALBUM_ARTIST "AlbumArtist" /* string */ |
#define | WSB_FILE_METADATA_COMPOSER "Composer" /* string */ |
#define | WSB_FILE_METADATA_WRITER "Writer" /* string */ |
#define | WSB_FILE_METADATA_ALBUM "Album" /* string */ |
#define | WSB_FILE_METADATA_GENRE_CODE "GenreCode" /* integer */ |
#define | WSB_FILE_METADATA_GENRE_NAME "GenreName" /* string */ |
#define | WSB_FILE_METADATA_GROUPING "Grouping" /* string */ |
#define | WSB_FILE_METADATA_DATE "Date" /* string */ |
#define | WSB_FILE_METADATA_ENCODING_TOOL "Tool", /* string */ |
#define | WSB_FILE_METADATA_COMMENT "Comment" /* string */ |
#define | WSB_FILE_METADATA_LYRICS "Lyrics" /* string */ |
#define | WSB_FILE_METADATA_COPYRIGHT "Copyright" /* string */ |
#define | WSB_FILE_METADATA_TRACK_NUMBER "Track" /* integer */ |
#define | WSB_FILE_METADATA_DISC_NUMBER "Disc" /* integer */ |
#define | WSB_FILE_METADATA_COVER_ART "Cover" /* byte array */ |
#define | WSB_FILE_METADATA_DESCRIPTION "Description" /* string */ |
#define | WSB_FILE_METADATA_RATING "Rating" /* integer */ |
#define | WSB_FILE_METADATA_TEMPO "Tempo" /* integer */ |
#define | WSB_FILE_METADATA_COMPILATION "Compilation" /* boolean */ |
#define | WSB_FILE_METADATA_IS_GAPLESS "IsGapless" /* boolean */ |
#define | WSB_FILE_METADATA_TITLE "Title" /* string */ |
#define | WSB_FILE_METADATA_STORE_FRONT "StoreFrontId" /* integer */ |
#define | WSB_FILE_METADATA_FILE_KIND "FileKind" /* integer */ |
#define | WSB_FILE_METADATA_SHOW_NAME "ShowName" /* string */ |
#define | WSB_FILE_METADATA_SHOW_SEASON "ShowSeason" /* integer */ |
#define | WSB_FILE_METADATA_SHOW_EPISODE_NUM "ShowEpisodeNumber" /* integer */ |
#define | WSB_FILE_METADATA_SHOW_EPISONE_NAME "ShowEpisodeName" /* string */ |
#define | WSB_FILE_METADATA_TV_NETWORK_NAME "TVNetworkName" /* string */ |
#define | WSB_FILE_METADATA_IS_PODCAST "IsPodcast" /* boolean */ |
#define | WSB_FILE_METADATA_PODCAST_URL "PodcastUrl" /* string */ |
#define | WSB_FILE_METADATA_PODCAST_GUID "PodcastGuid" /* byte array */ |
#define | WSB_FILE_METADATA_PODCAST_CATEGORY "PodcastCategory" /* string */ |
#define | WSB_FILE_METADATA_KEYWORDS "Keywords" /* string */ |
#define | WSB_FILE_METADATA_PURCHASE_DATE "PurchaseDate" /* string */ |
#define | WSB_FILE_METADATA_ICON_URI "IconUri" /* string */ |
#define | WSB_FILE_METADATA_INFO_URL "Info URL" /* string */ |
#define | WSB_FILE_METADATA_COVER_ART_URI "CoverUri" /* string */ |
#define | WSB_FILE_METADATA_LYRICS_URI "LyricsUri" /* string */ |
#define | WSB_FILE_METADATA_DURATION "Duration" /* integer */ |
#define | WSB_FILE_METADATA_PERFORMER "Performer" /* string */ |
#define | WSB_FILE_METADATA_AUTHOR "Author" /* string */ |
#define | WSB_SLAS_ATTRIBUTE_NAME "SilentLicenseAcquisitionUrls" |
Identifiers for the file attribute special URLs. More... | |
#define | WSB_RI_ATTRIBUTE_NAME "RightsIssuerUrls" |
Typedefs | |
typedef struct WSB_MediaFile | WSB_MediaFile |
A WSB_MediaFile object represents information about a media file. More... | |
typedef struct WSB_TrackInfo | WSB_TrackInfo |
A WSB_TrackInfo object represents information about a track in a media file. More... | |
typedef struct WSB_AudioMediaInfo | WSB_AudioMediaInfo |
Information about audio media. More... | |
typedef struct WSB_VideoMediaInfo | WSB_VideoMediaInfo |
Information about video media. More... | |
typedef struct WSB_MediaInfo | WSB_MediaInfo |
Media information about a media file or a track within the media file. More... | |
typedef struct WSB_FileProgress | WSB_FileProgress |
File progress information. More... | |
Functions | |
WSB_EXPORT const char * | WSB_TrackInfo_GetContentId (WSB_TrackInfo *track_info) |
Gets the content ID for the specified track. More... | |
WSB_EXPORT WSB_UInt32 | WSB_TrackInfo_GetTrackId (WSB_TrackInfo *track_info) |
Gets the track ID. More... | |
WSB_EXPORT WSB_Result | WSB_TrackInfo_GetMediaInfo (WSB_TrackInfo *track_info, WSB_MediaInfo *media_info) |
Gets the media info for the specified track. More... | |
WSB_EXPORT WSB_Result | WSB_TrackInfo_GetContentProtection (WSB_TrackInfo *track_info, SHI_Attribute **content_protection) |
Gets the content protection elements for the specified track. More... | |
WSB_EXPORT void | WSB_TrackInfo_Release (WSB_TrackInfo *track_info) |
Releases the specified WSB_TrackInfo object. More... | |
WSB_EXPORT WSB_Result | WSB_MediaFile_Open (const char *name, const char *mime_type, WSB_MediaFile **file) |
Opens the specified media file and creates a WSB_MediaFile object referencing it. More... | |
WSB_EXPORT WSB_Result | WSB_MediaFile_GetProtectionType (WSB_MediaFile *file, WSB_MediaFileProtectionType *type) |
Gets the type of protection on the specified media file, which may be none (indicated as WSB_PROTECTION_TYPE_CLEAR_TEXT). More... | |
WSB_EXPORT WSB_Result | WSB_MediaFile_GetMetadata (WSB_MediaFile *file, SHI_Attribute **metadata) |
Returns an attribute list containing all the metadata for the specified media file. More... | |
WSB_EXPORT WSB_Result | WSB_MediaFile_GetProgress (WSB_MediaFile *file, WSB_FileProgress *progress) |
Gets file progress information, indicating how many bytes of the file are available, and the total number of bytes in the file. More... | |
WSB_EXPORT WSB_Result | WSB_MediaFile_SetLicense (WSB_MediaFile *file, const void *license_data, WSB_Size license_data_size) |
Attempts to write the given license into the specified file. More... | |
WSB_EXPORT const char * | WSB_MediaFile_GetContentId (WSB_MediaFile *file) |
Returns the content ID for the content in the specified media file. More... | |
WSB_EXPORT const char * | WSB_MediaFile_GetContentType (WSB_MediaFile *file) |
Gets the specified media file's content type as a MIME type. More... | |
WSB_EXPORT WSB_Result | WSB_MediaFile_GetMediaInfo (WSB_MediaFile *file, WSB_MediaInfo *media_info) |
Gets basic information, such as media type, format, and so on, about the specified media file. More... | |
WSB_EXPORT WSB_Cardinal | WSB_MediaFile_GetTrackCount (WSB_MediaFile *file) |
Returns the number of tracks in the specified media file. More... | |
WSB_EXPORT WSB_Result | WSB_MediaFile_GetTrackInfo (WSB_MediaFile *file, WSB_Ordinal index, WSB_TrackInfo **track_info) |
Gets information about a specified track. More... | |
WSB_EXPORT WSB_Result | WSB_MediaFile_GetLicense (WSB_MediaFile *file, SHI_Data **license) |
Gets the license from the metadata attached to the specified media file. More... | |
WSB_EXPORT WSB_Result | WSB_MediaFile_GetRightsIssuerUrls (WSB_MediaFile *file, SHI_Attribute **ri_urls) |
Gets the right issuer URLs from the specified media file. More... | |
WSB_EXPORT WSB_Result | WSB_MediaFile_GetSilentLicenseAcquisitionUrls (WSB_MediaFile *file, SHI_Attribute **slas) |
Gets the silent license acquisition URLs from the specified media file. More... | |
WSB_EXPORT const char * | WSB_MediaFile_GetName (WSB_MediaFile *file) |
Gets the name of the media file, which was passed in during creation. More... | |
WSB_EXPORT WSB_Result | WSB_MediaFile_WaitUntilReady (WSB_MediaFile *file, WSB_UInt32 file_ready_timeout_ms) |
Waits until the file is ready or the specified timeout has been reached. More... | |
WSB_EXPORT WSB_Result | WSB_MediaFile_Close (WSB_MediaFile *file) |
Closes the media file and releases the WSB_MediaFile object referencing it. More... | |
Wasabi Media File API.
#define WSB_CONTENT_TYPE_AUDIO_MP4 "audio/mp4" |
#define WSB_CONTENT_TYPE_DASH "application/dash+xml" |
#define WSB_CONTENT_TYPE_DCF "application/vnd.oma.drm.dcf" |
#define WSB_CONTENT_TYPE_DECE "video/vnd.dece.mp4" |
#define WSB_CONTENT_TYPE_HLS "application/vnd.apple.mpegurl" |
#define WSB_CONTENT_TYPE_SUBTITLE_MP4 "application/mp4" |
#define WSB_CONTENT_TYPE_SUBTITLE_TTML "application/ttml+xml" |
#define WSB_CONTENT_TYPE_SUBTITLE_VTT "text/vtt" |
#define WSB_CONTENT_TYPE_VIDEO_M4V "video/m4v" |
#define WSB_CONTENT_TYPE_VIDEO_MP4 "video/mp4" |
Identifiers for mime type.
#define WSB_CONTENT_TYPE_VIDEO_MPEG2TS "video/MP2T" |
#define WSB_FILE_METADATA_ALBUM "Album" /* string */ |
#define WSB_FILE_METADATA_ALBUM_ARTIST "AlbumArtist" /* string */ |
#define WSB_FILE_METADATA_ARTIST "Artist" /* string */ |
#define WSB_FILE_METADATA_AUTHOR "Author" /* string */ |
#define WSB_FILE_METADATA_COMMENT "Comment" /* string */ |
#define WSB_FILE_METADATA_COMPILATION "Compilation" /* boolean */ |
#define WSB_FILE_METADATA_COMPOSER "Composer" /* string */ |
#define WSB_FILE_METADATA_COPYRIGHT "Copyright" /* string */ |
#define WSB_FILE_METADATA_COVER_ART "Cover" /* byte array */ |
#define WSB_FILE_METADATA_COVER_ART_URI "CoverUri" /* string */ |
#define WSB_FILE_METADATA_DATE "Date" /* string */ |
#define WSB_FILE_METADATA_DESCRIPTION "Description" /* string */ |
#define WSB_FILE_METADATA_DISC_NUMBER "Disc" /* integer */ |
#define WSB_FILE_METADATA_DURATION "Duration" /* integer */ |
#define WSB_FILE_METADATA_ENCODING_TOOL "Tool", /* string */ |
#define WSB_FILE_METADATA_FILE_KIND "FileKind" /* integer */ |
#define WSB_FILE_METADATA_GENRE_CODE "GenreCode" /* integer */ |
#define WSB_FILE_METADATA_GENRE_NAME "GenreName" /* string */ |
#define WSB_FILE_METADATA_GROUPING "Grouping" /* string */ |
#define WSB_FILE_METADATA_ICON_URI "IconUri" /* string */ |
#define WSB_FILE_METADATA_INFO_URL "Info URL" /* string */ |
#define WSB_FILE_METADATA_IS_GAPLESS "IsGapless" /* boolean */ |
#define WSB_FILE_METADATA_IS_PODCAST "IsPodcast" /* boolean */ |
#define WSB_FILE_METADATA_KEYWORDS "Keywords" /* string */ |
#define WSB_FILE_METADATA_LYRICS "Lyrics" /* string */ |
#define WSB_FILE_METADATA_LYRICS_URI "LyricsUri" /* string */ |
#define WSB_FILE_METADATA_NAME "Name" /* string */ |
Media file metadata items and their corresponding data types.
#define WSB_FILE_METADATA_PERFORMER "Performer" /* string */ |
#define WSB_FILE_METADATA_PODCAST_CATEGORY "PodcastCategory" /* string */ |
#define WSB_FILE_METADATA_PODCAST_GUID "PodcastGuid" /* byte array */ |
#define WSB_FILE_METADATA_PODCAST_URL "PodcastUrl" /* string */ |
#define WSB_FILE_METADATA_PURCHASE_DATE "PurchaseDate" /* string */ |
#define WSB_FILE_METADATA_RATING "Rating" /* integer */ |
#define WSB_FILE_METADATA_SHOW_EPISODE_NUM "ShowEpisodeNumber" /* integer */ |
#define WSB_FILE_METADATA_SHOW_EPISONE_NAME "ShowEpisodeName" /* string */ |
#define WSB_FILE_METADATA_SHOW_NAME "ShowName" /* string */ |
#define WSB_FILE_METADATA_SHOW_SEASON "ShowSeason" /* integer */ |
#define WSB_FILE_METADATA_STORE_FRONT "StoreFrontId" /* integer */ |
#define WSB_FILE_METADATA_TEMPO "Tempo" /* integer */ |
#define WSB_FILE_METADATA_TITLE "Title" /* string */ |
#define WSB_FILE_METADATA_TRACK_NUMBER "Track" /* integer */ |
#define WSB_FILE_METADATA_TV_NETWORK_NAME "TVNetworkName" /* string */ |
#define WSB_FILE_METADATA_WRITER "Writer" /* string */ |
#define WSB_MEDIA_FILE_FLAG_PROGRESS_CAN_START 1 |
Identifiers for file progress flags.
#define WSB_MEDIA_FILE_METADATA_FILTER_ALL 0xFFFFFFFF |
#define WSB_MEDIA_FILE_METADATA_FILTER_BASIC_SET 2 |
#define WSB_MEDIA_FILE_METADATA_FILTER_EXTENDED_SET 4 |
#define WSB_MEDIA_FILE_METADATA_FILTER_LICENSE 8 |
#define WSB_MEDIA_FILE_METADATA_FILTER_MINIMAL_SET 1 |
Identifiers for metadata filters.
#define WSB_RI_ATTRIBUTE_NAME "RightsIssuerUrls" |
#define WSB_SLAS_ATTRIBUTE_NAME "SilentLicenseAcquisitionUrls" |
Identifiers for the file attribute special URLs.
typedef struct WSB_AudioMediaInfo WSB_AudioMediaInfo |
Information about audio media.
typedef struct WSB_FileProgress WSB_FileProgress |
File progress information.
typedef struct WSB_MediaFile WSB_MediaFile |
A WSB_MediaFile object represents information about a media file.
typedef struct WSB_MediaInfo WSB_MediaInfo |
Media information about a media file or a track within the media file.
typedef struct WSB_TrackInfo WSB_TrackInfo |
A WSB_TrackInfo object represents information about a track in a media file.
typedef struct WSB_VideoMediaInfo WSB_VideoMediaInfo |
Information about video media.
enum WSB_HdrType |
enum WSB_MediaFormat |
enum WSB_MediaType |