Wasabi ExpressPlay SDK for Embedded Systems  1.23.0
Data Structures | Macros | Typedefs | Enumerations | Functions
WsbMediaStream.h File Reference

Wasabi Media Stream API. More...

#include "WsbResults.h"
#include "WsbTypes.h"

Go to the source code of this file.

Data Structures

struct  WSB_MediaStreamInterface
 
struct  WSB_MediaStream
 
union  WSB_MediaStream_FormatInfo
 Source data format information. More...
 
struct  WSB_MediaStream_FormatInfo::WSB_MediaStream_FormatInfo_Common
 

Macros

#define WSB_MEDIASTREAM_CONTENT_TYPE_DCF   "application/vnd.oma.drm.dcf"
 
#define WSB_MEDIASTREAM_CONTENT_TYPE_AES128CBC   "application/vnd.intertrust.drm.aes128.cbc"
 
#define WSB_MEDIASTREAM_CONTENT_TYPE_AES128CTR   "application/vnd.intertrust.drm.aes128.ctr"
 

Typedefs

typedef struct WSB_MediaStream WSB_MediaStream
 
typedef struct WSB_KeyManager WSB_MediaStreamKey
 

Enumerations

enum  WSB_MediaStream_SourceType {
  WSB_MEDIASTREAM_SOURCE_TYPE_DCF,
  WSB_MEDIASTREAM_SOURCE_TYPE_AES128CBC,
  WSB_MEDIASTREAM_SOURCE_TYPE_AES128CTR
}
 

Functions

WSB_EXPORT WSB_Result WSB_MediaStream_OpenUrl (const char *source_url, WSB_MediaStream_SourceType source_type, const WSB_MediaStream_FormatInfo *format_info, WSB_MediaStream **stream)
 Open a Marlin protected source. More...
 
WSB_EXPORT WSB_Result WSB_MediaStream_Open (WSB_MediaStream *source_stream, const WSB_MediaStream_FormatInfo *format_info, WSB_MediaStream **stream)
 Open a Marlin protected source stream. More...
 
WSB_EXPORT WSB_Result WSB_MediaStream_Read (WSB_MediaStream *self, void *buffer, WSB_Size *read_bytes)
 Read data from a media stream object. More...
 
WSB_EXPORT WSB_Result WSB_MediaStream_Seek (WSB_MediaStream *self, WSB_Position position)
 Change the current read position for a media stream. More...
 
WSB_EXPORT WSB_Result WSB_MediaStream_Tell (WSB_MediaStream *self, WSB_Position *position)
 Get the current read position for a media stream. More...
 
WSB_EXPORT WSB_Result WSB_MediaStream_GetSize (WSB_MediaStream *self, WSB_LargeSize *size)
 Get the size of the media stream in bytes, if known (or an error code if the size is unknown or an error occurs). More...
 
WSB_EXPORT WSB_Result WSB_MediaStream_GetContentType (WSB_MediaStream *self, const char **content_type)
 Get the content type of the data in the media stream. More...
 
WSB_EXPORT WSB_Result WSB_MediaStream_GetKey (WSB_MediaStream *self, const WSB_MediaStreamKey **key)
 Extract the crypto context from a Media Stream object. More...
 
WSB_EXPORT WSB_Result WSB_MediaStream_Close (WSB_MediaStream *self)
 Release a media stream object once it is no longer needed. More...
 

Detailed Description

Wasabi Media Stream API.

Macro Definition Documentation

◆ WSB_MEDIASTREAM_CONTENT_TYPE_AES128CBC

#define WSB_MEDIASTREAM_CONTENT_TYPE_AES128CBC   "application/vnd.intertrust.drm.aes128.cbc"

◆ WSB_MEDIASTREAM_CONTENT_TYPE_AES128CTR

#define WSB_MEDIASTREAM_CONTENT_TYPE_AES128CTR   "application/vnd.intertrust.drm.aes128.ctr"

◆ WSB_MEDIASTREAM_CONTENT_TYPE_DCF

#define WSB_MEDIASTREAM_CONTENT_TYPE_DCF   "application/vnd.oma.drm.dcf"