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

Wasabi Media Access API. More...

#include "WsbTypes.h"
#include "WsbElements.h"
#include "WsbMediaFile.h"

Go to the source code of this file.

Data Structures

struct  WSB_MediaSourceStatistics
 Media Source statistics. More...
 
struct  WSB_MediaSourceInfoExtension
 Info extensions. More...
 
struct  WSB_MediaSourceMediaInfo
 Media information, used to convey, amongst other things, the codec information for downloaded media buffers. More...
 
struct  WSB_MediaPresentationInfo
 Media Presentation Info. More...
 
struct  WSB_MediaPeriodInfo
 Media Period Info. More...
 
struct  WSB_MediaInitSegmentInfo
 Segment information for initialization segments. More...
 
struct  WSB_MediaSegmentInfo
 Segment information for media segments. More...
 
struct  WSB_DashCencInfo
 MPEG DASH Common Encryption information. More...
 
struct  WSB_DashIsoFfMediaSegmentInfo
 Subclass of WSB_MediaSegmentInfo for MPEG DASH media segments. More...
 
struct  WSB_MediaDataInfo
 Media data information/. More...
 
struct  WSB_DashIsoFfMediaDataInfo
 Subclass of WSB_MediaDataInfo for MPEG DASH ISOFF media data. More...
 
struct  WSB_MediaRepresentationInfo
 Representation info. More...
 
struct  WSB_MediaStreamVariantInfo
 Stream variant info. More...
 
struct  WSB_MediaSourceEvent
 Event base class. More...
 
struct  WSB_MediaSourceStateChangedEvent
 This event is sent when the state of the media source changes. More...
 
struct  WSB_MediaSourcePresentationEvent
 This event is sent when a new presentation has been received. More...
 
struct  WSB_MediaSourcePeriodEvent
 This event is sent when a new period has started. More...
 
struct  WSB_MediaSourceInitSegmentEvent
 This event is sent when a new initialization segment has been received. More...
 
struct  WSB_MediaSourceMediaSegmentEvent
 This event is sent when the download of a new segment has started. More...
 
struct  WSB_MediaSourceMediaDataEvent
 This event is sent when new data is available for one of downloading segment. More...
 
struct  WSB_MediaSourceSeekDoneEvent
 This event is sent when a seek operation has been completed. More...
 
struct  WSB_MediaSourceStartDoneEvent
 This event is sent when a start operation has been completed. More...
 
struct  WSB_MediaSourceStopDoneEvent
 This event is sent when a stop operation has been completed. More...
 
struct  WSB_MediaSourceFlushDoneEvent
 This event is sent when a flush operation has been completed. More...
 
struct  WSB_MediaSourceListener
 
struct  WSB_MediaSourceListenerInterface
 
struct  WSB_MediaSourceCodecFilter
 
struct  WSB_MediaSourceCodecFilterInterface
 
struct  WSB_MediaSourceStreamSelector
 
struct  WSB_MediaSourceStreamSelectorInterface
 
struct  WSB_MediaSourceRepresentationSelector
 
struct  WSB_MediaSourceRepresentationSelectorInterface
 
struct  WSB_MediaSourceConfig
 WSB_MediaSource configuration options. More...
 
struct  WSB_MediaSourceStatus
 Status of a WSB_MediaSource instance. More...
 

Macros

#define WSB_MEDIA_SOURCE_TIMEOUT_INFINITE   ((WSB_Int32)(-1))
 
#define WSB_DASH_ISOFF_MEDIA_DATA_FLAG_SYNC   1
 
#define WSB_MEDIA_SOURCE_INFO_EXTENSION_TYPE_PSSH   0x70737368 /* 'pssh' */
 
#define WSB_MEDIA_SOURCE_USE_DEFAULT_SELECTOR   (-1)
 
#define WSB_MEDIA_SOURCE_NO_COMPATIBLE_SELECTION   (-2)
 

Typedefs

typedef struct WSB_MediaSource WSB_MediaSource
 
typedef struct
WSB_MediaSourceListenerInstance 
WSB_MediaSourceListenerInstance
 Recipient of Media Source event callbacks. More...
 
typedef struct
WSB_MediaSourceListenerInterface 
WSB_MediaSourceListenerInterface
 
typedef struct
WSB_MediaSourceCodecFilterInstance 
WSB_MediaSourceCodecFilterInstance
 Interface used to check which codecs are supported and which are not. More...
 
typedef struct
WSB_MediaSourceCodecFilterInterface 
WSB_MediaSourceCodecFilterInterface
 
typedef struct
WSB_MediaSourceStreamSelectorInstance 
WSB_MediaSourceStreamSelectorInstance
 Interface used to select amongst different available streams. More...
 
typedef struct
WSB_MediaSourceStreamSelectorInterface 
WSB_MediaSourceStreamSelectorInterface
 
typedef struct
WSB_MediaSourceRepresentationSelectorInstance 
WSB_MediaSourceRepresentationSelectorInstance
 Interface used to select amongst different available representations (typically different bitrates) More...
 
typedef struct
WSB_MediaSourceRepresentationSelectorInterface 
WSB_MediaSourcRepresentationSelectorInterface
 
typedef struct
WSB_MediaDataDecrypter 
WSB_MediaDataDecrypter
 

Enumerations

enum  WSB_MediaSourceEventType {
  WSB_MEDIA_SOURCE_EVENT_STATE_CHANGED = 0,
  WSB_MEDIA_SOURCE_EVENT_PRESENTATION,
  WSB_MEDIA_SOURCE_EVENT_PERIOD,
  WSB_MEDIA_SOURCE_EVENT_INIT_SEGMENT,
  WSB_MEDIA_SOURCE_EVENT_MEDIA_SEGMENT,
  WSB_MEDIA_SOURCE_EVENT_MEDIA_DATA,
  WSB_MEDIA_SOURCE_EVENT_SEEK_DONE,
  WSB_MEDIA_SOURCE_EVENT_START_DONE,
  WSB_MEDIA_SOURCE_EVENT_STOP_DONE,
  WSB_MEDIA_SOURCE_EVENT_FLUSH_DONE
}
 Event types. More...
 
enum  WSB_MediaSourceState {
  WSB_MEDIA_SOURCE_STATE_IDLE,
  WSB_MEDIA_SOURCE_STATE_RUNNING,
  WSB_MEDIA_SOURCE_STATE_STOPPED
}
 Media Source states. More...
 
enum  WSB_MediaPresentationType { WSB_MEDIA_PRESENTATION_TYPE_MPEG_DASH }
 Presentation types. More...
 
enum  WSB_MediaPresentationMode {
  WSB_MEDIA_PRESENTATION_MODE_STATIC,
  WSB_MEDIA_PRESENTATION_MODE_DYNAMIC
}
 Presentation modes. More...
 
enum  WSB_MediaContainerFormat {
  WSB_MEDIA_CONTAINER_FORMAT_MP4,
  WSB_MEDIA_CONTAINER_FORMAT_MPEG2TS
}
 Media container formats. More...
 
enum  WSB_MediaSegmentType {
  WSB_MEDIA_SEGMENT_TYPE_DASH_ISOFF,
  WSB_MEDIA_SEGMENT_TYPE_DASH_MP2T
}
 Media segment types. More...
 
enum  WSB_MediaDataDecrypterType { WSB_MEDIA_DATA_DECRYPTER_TYPE_CENC }
 
enum  WSB_MediaDataDecrypterKeyFormat {
  WSB_MEDIA_DATA_DECRYPTER_KEY_FORMAT_RAW,
  WSB_MEDIA_DATA_DECRYPTER_KEY_FORMAT_SKB
}
 
enum  WSB_MediaSourceSeekFlag {
  WSB_SEEK_FLAG_BOTH,
  WSB_SEEK_FLAG_VIDEO_ONLY,
  WSB_SEEK_FLAG_AUDIO_ONLY
}
 Seek operationn modifier flags. More...
 
enum  WSB_MediaSourceFlushFlag {
  WSB_FLUSH_FLAG_BOTH,
  WSB_FLUSH_FLAG_VIDEO_ONLY,
  WSB_FLUSH_FLAG_AUDIO_ONLY
}
 Flush operation modifier flags. More...
 
enum  WSB_MediaSourceResumeFlag {
  WSB_RESUME_FLAG_FROM_CURRENT_POSITON,
  WSB_RESUME_FLAG_CATCHUP_TO_LIVE
}
 Resume operation modifier flags. More...
 

Functions

WSB_EXPORT WSB_Result WSB_MediaSource_Create (const char *url, const char *mime_type, const WSB_MediaSourceListener *listener, const WSB_MediaSourceCodecFilter *codec_filter, const WSB_MediaSourceStreamSelector *stream_selector, const WSB_MediaSourceRepresentationSelector *representation_selector, const WSB_MediaSourceConfig *config, WSB_MediaSource **source)
 Create a WSB_MediaSource instance to handle a streaming URL. More...
 
WSB_EXPORT WSB_Result WSB_MediaSource_Start (WSB_MediaSource *self, WSB_MediaSourceResumeFlag resume_flag)
 Start the media source. More...
 
WSB_EXPORT WSB_Result WSB_MediaSource_Stop (WSB_MediaSource *self)
 Stop the media source. More...
 
WSB_EXPORT WSB_Result WSB_MediaSource_Flush (WSB_MediaSource *self, WSB_MediaSourceFlushFlag flush_flag)
 Flush the media source buffers. More...
 
WSB_EXPORT WSB_Result WSB_MediaSource_Advance (WSB_MediaSource *self, WSB_Int32 timeout)
 Process the next message from the media source queue and call the listener's OnEvent callback with a corresponding event. More...
 
WSB_EXPORT WSB_Result WSB_MediaSource_Seek (WSB_MediaSource *self, WSB_UInt64 position_in_ms, WSB_MediaSourceSeekFlag seek_flag)
 Seek to a specific time position in the media source. More...
 
WSB_EXPORT WSB_Result WSB_MediaSource_ReselectStreams (WSB_MediaSource *self)
 Reselect streams from the media source. More...
 
WSB_EXPORT WSB_Result WSB_MediaSource_GetStatus (WSB_MediaSource *self, WSB_MediaSourceStatus *status)
 Obtain the status of a WSB_MediaSource instance. More...
 
WSB_EXPORT WSB_Result WSB_MediaSource_Destroy (WSB_MediaSource *self)
 Destroy a WSB_MediaSource instance. More...
 
WSB_EXPORT WSB_Result WSB_MediaDataDecrypter_Create (WSB_MediaDataDecrypterType type, const void *init_info, WSB_MediaDataDecrypterKeyFormat key_format, const WSB_UInt8 *key, unsigned int key_size, WSB_MediaDataDecrypter **decrypter)
 Create a WSB_MediaDataDecrypter instance. More...
 
WSB_EXPORT WSB_Result WSB_MediaDataDecrypter_Decrypt (WSB_MediaDataDecrypter *self, const WSB_UInt8 *in, unsigned int in_size, WSB_UInt8 *out, unsigned int *out_size)
 Decrypt a media payload. More...
 
WSB_EXPORT WSB_Result WSB_MediaDataDecrypter_Destroy (WSB_MediaDataDecrypter *self)
 Destroy a WSB_MediaDataDecrypter instance. More...
 

Detailed Description

Wasabi Media Access API.