Wasabi ExpressPlay SDK for Embedded Systems  1.23.0
WsbMediaAccess.h
Go to the documentation of this file.
1 /*****************************************************************
2 |
3 | Wasabi - Media Access API
4 |
5 | $Id: WsbMediaAccess.h 12954 2017-03-22 23:31:07Z hwa $
6 | Original author: Gilles Boccon-Gibod
7 |
8 | This software is provided to you pursuant to your agreement
9 | with Intertrust Technologies Corporation ("Intertrust").
10 | This software may be used only in accordance with the terms
11 | of the agreement.
12 |
13 | Copyright (c) 2008-2014 by Intertrust. All rights reserved.
14 |
15 ****************************************************************/
21 #ifndef _WSB_MEDIA_ACCESS_H_
22 #define _WSB_MEDIA_ACCESS_H_
23 
24 /*----------------------------------------------------------------------
25 | includes
26 +---------------------------------------------------------------------*/
27 #include "WsbTypes.h"
28 #include "WsbElements.h"
29 #include "WsbMediaFile.h"
30 
31 /*----------------------------------------------------------------------
32 | types
33 +---------------------------------------------------------------------*/
34 
35 
42 
43 
47 typedef enum {
59 
63 typedef enum {
68 
72 typedef enum {
75 
79 typedef enum {
83 
87 typedef enum {
92 
96 typedef enum {
101 
135 typedef struct {
139 
145 typedef struct {
146  WSB_UInt32 type; /* see WSB_MediaSourceInfoExtension types */
148  const WSB_UInt8* data;
150 
155 typedef struct {
161  const unsigned char* codec_info;
163 
167 typedef struct {
173 
177 typedef struct {
183 
187 typedef struct {
190  const char* representation_id;
192  unsigned int media_info_count;
195 
196 
201 typedef struct WSB_MediaFileInfo
202 {
203  const char* url;
208 
212 typedef struct {
215  const char* representation_id;
220  const char* url;
225 
229 typedef struct {
232  WSB_UInt8 kid[16];
233  const char* content_id;
234  unsigned int data_size;
235  const WSB_UInt8* data;
237 
241 typedef struct {
246 
250 typedef struct {
255 
259 typedef struct {
262  const char* representation_id;
264  unsigned int media_data_size;
265  const unsigned char* media_data;
267 
271 typedef struct {
278 
282 typedef struct {
283  const char* representation_id;
284  const char* codecs;
288 
292 typedef struct {
293  const char* language;
296 
300 typedef struct {
303 
307 typedef struct {
311  const char* message;
313 
318 typedef struct {
321  unsigned int extension_count;
324 
329 typedef struct {
332  unsigned int extension_count;
335 
342 typedef struct {
345  unsigned int extension_count;
348 
353 typedef struct {
356  unsigned int extension_count;
359 
364 typedef struct {
367  unsigned int extension_count;
370 
374 typedef struct {
378 
382 typedef struct {
386 
390 typedef struct {
394 
398 typedef struct {
402 
408 typedef struct {
412 
446  void (*OnEvent)(const WSB_MediaSourceListener* self,
447  const WSB_MediaSourceEvent* event);
448 };
449 
455 typedef struct {
459 
473  int (*IsCodecSupported)(const WSB_MediaSourceCodecFilter* self,
474  WSB_MediaType media_type,
475  const char* codec);
476 };
477 
484 typedef struct {
488 
512  int (*SelectStream)(const WSB_MediaSourceStreamSelector* self,
513  WSB_MediaType media_type,
514  unsigned int stream_count,
515  const WSB_MediaStreamVariantInfo** streams);
516 };
517 
524 typedef struct {
528 
555  int (*SelectRepresentation)(
557  WSB_MediaType media_type,
558  unsigned int representation_count,
559  const WSB_MediaRepresentationInfo** representations,
560  const WSB_MediaSourceStatistics* statistics);
561 };
562 
566 typedef struct {
568  WSB_Cardinal max_video_bytes_in_queue; /* TS accounted as video */
570  WSB_UInt32 max_bitrate; /* used by default stream selector */
571  WSB_UInt32 max_height; /* used by default stream selector */
572  WSB_UInt32 max_width; /* used by default stream selector */
573  const char* prefered_language; /* used by default stream selector */
574  WSB_Boolean create_stopped; /* WSB_FALSE by default */
575  double segment_retry_period; /* seconds between failed fetch retries */
577 
581 typedef struct {
584  WSB_Size audio_duration_in_queue; /* in milliseconds */
585  WSB_Size video_duration_in_queue; /* in milliseconds */
587 
588 typedef enum {
591 
592 typedef enum {
596 
603 typedef enum {
611 
618 typedef enum {
626 
633 typedef enum {
639 
640 /*----------------------------------------------------------------------
641 | constants
642 +---------------------------------------------------------------------*/
643 #define WSB_MEDIA_SOURCE_TIMEOUT_INFINITE ((WSB_Int32)(-1))
644 
645 /* WSB_DashIsoFfMediaDataInfo flags */
646 #define WSB_DASH_ISOFF_MEDIA_DATA_FLAG_SYNC 1
647 
648 /* WSB_MediaSourceInfoExtension types */
649 #define WSB_MEDIA_SOURCE_INFO_EXTENSION_TYPE_PSSH 0x70737368 /* 'pssh' */
650 
651 /* Return values for stream and representation selectors */
652 #define WSB_MEDIA_SOURCE_USE_DEFAULT_SELECTOR (-1)
653 #define WSB_MEDIA_SOURCE_NO_COMPATIBLE_SELECTION (-2)
654 
655 /*----------------------------------------------------------------------
656 | functions
657 +---------------------------------------------------------------------*/
658 #if defined(__cplusplus)
659 extern "C" {
660 #endif
661 
688 WSB_EXPORT WSB_Result
690  const char* url,
691  const char* mime_type,
692  const WSB_MediaSourceListener* listener,
693  const WSB_MediaSourceCodecFilter* codec_filter,
694  const WSB_MediaSourceStreamSelector* stream_selector,
695  const WSB_MediaSourceRepresentationSelector* representation_selector,
696  const WSB_MediaSourceConfig* config,
697  WSB_MediaSource** source);
698 
714 WSB_EXPORT WSB_Result
716 
729 WSB_EXPORT WSB_Result
731 
751 WSB_EXPORT WSB_Result
753 
767 WSB_EXPORT WSB_Result
769  WSB_Int32 timeout);
770 
786 WSB_EXPORT WSB_Result
788  WSB_UInt64 position_in_ms,
789  WSB_MediaSourceSeekFlag seek_flag);
790 
803 WSB_EXPORT WSB_Result
805 
816 WSB_EXPORT WSB_Result
818  WSB_MediaSourceStatus* status);
819 
828 WSB_EXPORT WSB_Result
830 
839 
859 WSB_EXPORT WSB_Result
861  const void* init_info,
863  const WSB_UInt8* key,
864  unsigned int key_size,
865  WSB_MediaDataDecrypter** decrypter);
866 
882 WSB_EXPORT WSB_Result
884  const WSB_UInt8* in,
885  unsigned int in_size,
886  WSB_UInt8* out,
887  unsigned int* out_size);
888 
897 WSB_EXPORT WSB_Result
899 
902 #if defined(__cplusplus)
903 }
904 #endif
905 
906 #endif /* _WSB_MEDIA_ACCESS_H_ */
WSB_Element * details
Definition: WsbMediaAccess.h:181
const WSB_MediaSourceInfoExtension * extensions
Definition: WsbMediaAccess.h:333
This event is sent when new data is available for one of downloading segment.
Definition: WsbMediaAccess.h:364
WSB_MediaDataDecrypterKeyFormat
Definition: WsbMediaAccess.h:592
WSB_Result error_code
Definition: WsbMediaAccess.h:310
WSB_EXPORT WSB_Result WSB_MediaSource_Destroy(WSB_MediaSource *self)
Destroy a WSB_MediaSource instance.
This event is sent when a flush operation has been completed.
Definition: WsbMediaAccess.h:398
WSB_MediaContainerFormat media_container_format
Definition: WsbMediaAccess.h:191
Definition: WsbMediaAccess.h:51
This event is sent when a stop operation has been completed.
Definition: WsbMediaAccess.h:390
Info extensions.
Definition: WsbMediaAccess.h:145
Definition: WsbMediaAccess.h:529
Wasabi Element API.
Seek both audio and video streams.
Definition: WsbMediaAccess.h:605
WSB_Element * details
Definition: WsbMediaAccess.h:294
Representation info.
Definition: WsbMediaAccess.h:282
Definition: WsbMediaAccess.h:489
WSB_Size video_bytes_in_queue
Definition: WsbMediaAccess.h:583
Definition: WsbMediaAccess.h:56
WSB_Element * details
Definition: WsbMediaAccess.h:286
WSB_Result start_result
Definition: WsbMediaAccess.h:384
This event is sent when a new presentation has been received.
Definition: WsbMediaAccess.h:318
Definition: WsbMediaAccess.h:54
WSB_MediaType type
Definition: WsbMediaAccess.h:156
WSB_MediaSourceEvent base
Definition: WsbMediaAccess.h:383
WSB_MediaPresentationMode mode
Definition: WsbMediaAccess.h:169
unsigned int data_size
Definition: WsbMediaAccess.h:234
Definition: WsbMediaAccess.h:66
unsigned WSB_CONFIG_INT64_TYPE WSB_Position
Definition: WsbTypes.h:51
WSB_UInt8 profile
Definition: WsbMediaAccess.h:242
WSB_MediaSegmentType type
Definition: WsbMediaAccess.h:260
WSB_UInt32 format
Definition: WsbMediaAccess.h:157
Media Source statistics.
Definition: WsbMediaAccess.h:135
Seek only on the audio stream.
Definition: WsbMediaAccess.h:609
Definition: WsbMediaAccess.h:593
WSB_MediaSegmentType
Media segment types.
Definition: WsbMediaAccess.h:96
Definition: WsbMediaAccess.h:97
WSB_UInt64 media_duration
Definition: WsbMediaAccess.h:158
Definition: WsbMediaAccess.h:52
This event is sent when a start operation has been completed.
Definition: WsbMediaAccess.h:382
unsigned char WSB_UInt8
8-bit unsigned integer
Definition: WsbTypes.h:40
WSB_LargeSize range_length
Definition: WsbMediaAccess.h:222
WSB_UInt32 media_timescale
Definition: WsbMediaAccess.h:159
WSB_MediaSourceRepresentationSelectorInstance * instance
Definition: WsbMediaAccess.h:525
Subclass of WSB_MediaSegmentInfo for MPEG DASH media segments.
Definition: WsbMediaAccess.h:250
Definition: WsbMediaAccess.h:81
unsigned WSB_CONFIG_INT64_TYPE WSB_LargeSize
Definition: WsbTypes.h:50
WSB_MediaSourceEvent base
Definition: WsbMediaAccess.h:365
const WSB_DashCencInfo * cenc_info
Definition: WsbMediaAccess.h:252
Definition: WsbMediaAccess.h:408
WSB_MediaSourceEvent base
Definition: WsbMediaAccess.h:330
const char * message
Definition: WsbMediaAccess.h:311
struct WSB_Element WSB_Element
A WSB_Element object represents information about a hierarchical element.
Definition: WsbElements.h:37
WSB_Cardinal max_video_bytes_in_queue
Definition: WsbMediaAccess.h:568
const WSB_MediaSourceMediaInfo * media_infos
Definition: WsbMediaAccess.h:193
unsigned int extension_count
Definition: WsbMediaAccess.h:345
Definition: WsbMediaAccess.h:55
WSB_Boolean
Boolean type used for variables that can be true (WSB_TRUE) or false (WSB_FALSE). ...
Definition: WsbTypes.h:71
Definition: WsbMediaAccess.h:460
WSB_MediaFormat
Identifiers for media formats.
Definition: WsbMediaFile.h:121
Definition: WsbMediaAccess.h:413
WSB_Element * details
Definition: WsbMediaAccess.h:171
const char * representation_id
Definition: WsbMediaAccess.h:215
unsigned int media_data_size
Definition: WsbMediaAccess.h:264
Status of a WSB_MediaSource instance.
Definition: WsbMediaAccess.h:581
Seek only on the video stream.
Definition: WsbMediaAccess.h:607
WSB_MediaSourceResumeFlag
Resume operation modifier flags.
Definition: WsbMediaAccess.h:633
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 ...
Definition: WsbMediaAccess.h:80
struct WSB_MediaSourceCodecFilterInstance WSB_MediaSourceCodecFilterInstance
Interface used to check which codecs are supported and which are not.
Definition: WsbMediaAccess.h:453
WSB_MediaSourceEvent base
Definition: WsbMediaAccess.h:399
const WSB_MediaSourceInfoExtension * extensions
Definition: WsbMediaAccess.h:368
WSB_MediaSourceFlushFlag
Flush operation modifier flags.
Definition: WsbMediaAccess.h:618
WSB_MediaSourceCodecFilterInstance * instance
Definition: WsbMediaAccess.h:456
const WSB_MediaDataInfo * data_info
Definition: WsbMediaAccess.h:366
WSB_UInt32 WSB_Ordinal
An unsigned integer that represents a position in a sequence (such as an index into a list of element...
Definition: WsbTypes.h:127
WSB_UInt32 duration
Definition: WsbMediaAccess.h:275
WSB_UInt32 max_bitrate
Definition: WsbMediaAccess.h:570
unsigned int extension_count
Definition: WsbMediaAccess.h:367
WSB_MediaContainerFormat
Media container formats.
Definition: WsbMediaAccess.h:87
WSB_Size data_size
Definition: WsbMediaAccess.h:147
WSB_MediaSegmentType type
Definition: WsbMediaAccess.h:188
Stream variant info.
Definition: WsbMediaAccess.h:292
Flush both audio and video.
Definition: WsbMediaAccess.h:620
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.
WSB_Ordinal period_index
Definition: WsbMediaAccess.h:178
Definition: WsbMediaAccess.h:524
unsigned WSB_CONFIG_INT64_TYPE WSB_UInt64
Definition: WsbTypes.h:49
WSB_Result stop_result
Definition: WsbMediaAccess.h:392
unsigned int extension_count
Definition: WsbMediaAccess.h:356
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.
Media data information/.
Definition: WsbMediaAccess.h:259
const char * prefered_language
Definition: WsbMediaAccess.h:573
Definition: WsbMediaAccess.h:65
WSB_Size codec_info_size
Definition: WsbMediaAccess.h:160
const WSB_MediaSourceInfoExtension * extensions
Definition: WsbMediaAccess.h:346
Definition: WsbMediaAccess.h:99
Definition: WsbMediaAccess.h:98
WSB_Ordinal stream_index
Definition: WsbMediaAccess.h:214
WSB_MediaSourceEvent base
Definition: WsbMediaAccess.h:343
WSB_UInt64 cts
Definition: WsbMediaAccess.h:274
unsigned int extension_count
Definition: WsbMediaAccess.h:321
This event is sent when a seek operation has been completed.
Definition: WsbMediaAccess.h:374
WSB_MediaSourceEvent base
Definition: WsbMediaAccess.h:308
Seek to the most current media if live presentation.
Definition: WsbMediaAccess.h:637
Segment information for media segments.
Definition: WsbMediaAccess.h:212
unsigned int extension_count
Definition: WsbMediaAccess.h:332
WSB_MediaSourceListenerInstance * instance
Definition: WsbMediaAccess.h:409
WSB_UInt32 duration
Definition: WsbMediaAccess.h:218
WSB_Result flush_result
Definition: WsbMediaAccess.h:400
WSB_MediaSegmentType type
Definition: WsbMediaAccess.h:213
This event is sent when a new initialization segment has been received.
Definition: WsbMediaAccess.h:342
Flush video, keep audio continuous.
Definition: WsbMediaAccess.h:622
WSB_MediaPeriodInfo * period_info
Definition: WsbMediaAccess.h:331
This event is sent when the download of a new segment has started.
Definition: WsbMediaAccess.h:353
Media Period Info.
Definition: WsbMediaAccess.h:177
WSB_Size size
Definition: WsbMediaAccess.h:204
struct WSB_MediaSource WSB_MediaSource
Definition: WsbMediaAccess.h:41
struct WSB_MediaSourceStreamSelectorInstance WSB_MediaSourceStreamSelectorInstance
Interface used to select amongst different available streams.
Definition: WsbMediaAccess.h:482
File information for a DASH representation consisting of a single URL and no segment such as subtitle...
Definition: WsbMediaAccess.h:201
Subclass of WSB_MediaDataInfo for MPEG DASH ISOFF media data.
Definition: WsbMediaAccess.h:271
WSB_MediaSourceSeekFlag
Seek operationn modifier flags.
Definition: WsbMediaAccess.h:603
WSB_MediaSource configuration options.
Definition: WsbMediaAccess.h:566
WSB_MediaSourceState
Media Source states.
Definition: WsbMediaAccess.h:63
const WSB_MediaSourceStreamSelectorInterface * iface
Definition: WsbMediaAccess.h:486
WSB_MediaSourceEvent base
Definition: WsbMediaAccess.h:319
WSB_MediaFormat media_format
Definition: WsbMediaAccess.h:206
WSB_UInt64 duration
Definition: WsbMediaAccess.h:170
const unsigned char * codec_info
Definition: WsbMediaAccess.h:161
WSB_UInt32 max_width
Definition: WsbMediaAccess.h:572
WSB_MediaSourceEventType type
Definition: WsbMediaAccess.h:301
Resume from the current position, regardless whether static or dynamic MPD.
Definition: WsbMediaAccess.h:635
const WSB_MediaSegmentInfo * segment_info
Definition: WsbMediaAccess.h:355
struct WSB_MediaSourceRepresentationSelectorInstance WSB_MediaSourceRepresentationSelectorInstance
Interface used to select amongst different available representations (typically different bitrates) ...
Definition: WsbMediaAccess.h:522
WSB_UInt32 flags
Definition: WsbMediaAccess.h:276
Definition: WsbMediaAccess.h:57
bool reset_iv_at_subsample
1 for AES-CTR-128, 2 for AES-CBC-128.
Definition: WsbMediaAccess.h:231
WSB_UInt32 WSB_Cardinal
An unsigned integer used to represent a quantity that can be counted (such as a number of elements in...
Definition: WsbTypes.h:121
WSB_MediaPresentationType
Presentation types.
Definition: WsbMediaAccess.h:72
WSB_Size audio_duration_in_queue
Definition: WsbMediaAccess.h:584
Definition: WsbMediaAccess.h:89
Media information, used to convey, amongst other things, the codec information for downloaded media b...
Definition: WsbMediaAccess.h:155
Definition: WsbMediaAccess.h:53
WSB_EXPORT WSB_Result WSB_MediaSource_Start(WSB_MediaSource *self, WSB_MediaSourceResumeFlag resume_flag)
Start the media source.
WSB_EXPORT WSB_Result WSB_MediaSource_GetStatus(WSB_MediaSource *self, WSB_MediaSourceStatus *status)
Obtain the status of a WSB_MediaSource instance.
WSB_MediaPresentationType type
Definition: WsbMediaAccess.h:168
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.
WSB_MediaSourceEvent base
Definition: WsbMediaAccess.h:391
WSB_UInt32 max_height
Definition: WsbMediaAccess.h:571
WSB_MediaSourceStreamSelectorInstance * instance
Definition: WsbMediaAccess.h:485
Definition: WsbMediaAccess.h:48
int WSB_Result
Signed integer value representing a function or method result (return value).
Definition: WsbTypes.h:83
WSB_MediaType media_type
Definition: WsbMediaAccess.h:205
const char * representation_id
Definition: WsbMediaAccess.h:262
Definition: WsbMediaAccess.h:50
WSB_UInt64 start
Definition: WsbMediaAccess.h:179
WSB_Cardinal max_audio_bytes_in_queue
Definition: WsbMediaAccess.h:567
WSB_Position range_offset
Definition: WsbMediaAccess.h:221
unsigned int media_info_count
Definition: WsbMediaAccess.h:192
Definition: WsbMediaAccess.h:594
const WSB_UInt8 * data
Definition: WsbMediaAccess.h:235
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.
Definition: WsbMediaAccess.h:455
WSB_UInt32 algorithm_id
Definition: WsbMediaAccess.h:230
Definition: WsbMediaAccess.h:90
WSB_Size video_duration_in_queue
Definition: WsbMediaAccess.h:585
const WSB_MediaSourceRepresentationSelectorInterface * iface
Definition: WsbMediaAccess.h:526
const WSB_DashDvInfo * dv_info
Definition: WsbMediaAccess.h:253
WSB_UInt8 level
Definition: WsbMediaAccess.h:243
WSB_EXPORT WSB_Result WSB_MediaSource_Flush(WSB_MediaSource *self, WSB_MediaSourceFlushFlag flush_flag)
Flush the media source buffers.
Definition: WsbMediaAccess.h:484
WSB_UInt64 bandwidth
Definition: WsbMediaAccess.h:285
const WSB_MediaInitSegmentInfo * init_segment_info
Definition: WsbMediaAccess.h:344
WSB_UInt64 duration
Definition: WsbMediaAccess.h:180
const char * url
Definition: WsbMediaAccess.h:203
unsigned int WSB_UInt32
32-bit (or more) unsigned integer
Definition: WsbTypes.h:36
Event base class.
Definition: WsbMediaAccess.h:300
Wasabi Media File API.
WSB_UInt32 segment_index
Definition: WsbMediaAccess.h:216
Segment information for initialization segments.
Definition: WsbMediaAccess.h:187
WSB_MediaDataDecrypterType
Definition: WsbMediaAccess.h:588
const char * representation_id
Definition: WsbMediaAccess.h:190
const WSB_MediaSourceCodecFilterInterface * iface
Definition: WsbMediaAccess.h:457
Definition: WsbMediaAccess.h:73
WSB_EXPORT WSB_Result WSB_MediaDataDecrypter_Destroy(WSB_MediaDataDecrypter *self)
Destroy a WSB_MediaDataDecrypter instance.
This event is sent when the state of the media source changes.
Definition: WsbMediaAccess.h:307
Dolby Vision information for video segments.
Definition: WsbMediaAccess.h:241
const char * language
Definition: WsbMediaAccess.h:293
WSB_UInt64 dts
Definition: WsbMediaAccess.h:273
WSB_Size audio_bytes_in_queue
Definition: WsbMediaAccess.h:582
WSB_Cardinal max_subtitle_bytes_in_queue
Definition: WsbMediaAccess.h:569
struct WSB_MediaDataDecrypter WSB_MediaDataDecrypter
Definition: WsbMediaAccess.h:838
WSB_MediaType
Identifiers for the different media types.
Definition: WsbMediaFile.h:111
WSB_MediaSourceStatistics stats
Definition: WsbMediaAccess.h:223
WSB_MediaDataInfo base
Definition: WsbMediaAccess.h:272
WSB_MediaSourceEvent base
Definition: WsbMediaAccess.h:375
This event is sent when a new period has started.
Definition: WsbMediaAccess.h:329
WSB_MediaSegmentInfo base
Definition: WsbMediaAccess.h:251
WSB_MediaPresentationInfo * presentation_info
Definition: WsbMediaAccess.h:320
signed int WSB_Int32
32-bit (or more) signed integer
Definition: WsbTypes.h:37
WSB_MediaSourceEventType
Event types.
Definition: WsbMediaAccess.h:47
double segment_retry_period
Definition: WsbMediaAccess.h:575
WSB_UInt64 bandwidth
Observed download rate for streamed media in bits per second.
Definition: WsbMediaAccess.h:137
const char * content_id
Definition: WsbMediaAccess.h:233
WSB_Ordinal stream_index
Definition: WsbMediaAccess.h:189
const WSB_MediaSourceListenerInterface * iface
Definition: WsbMediaAccess.h:410
const unsigned char * media_data
Definition: WsbMediaAccess.h:265
WSB_MediaPresentationMode
Presentation modes.
Definition: WsbMediaAccess.h:79
const WSB_UInt8 * data
Definition: WsbMediaAccess.h:148
Flush audio, keep video continuous.
Definition: WsbMediaAccess.h:624
WSB_EXPORT WSB_Result WSB_MediaSource_Stop(WSB_MediaSource *self)
Stop the media source.
WSB_EXPORT WSB_Result WSB_MediaSource_ReselectStreams(WSB_MediaSource *self)
Reselect streams from the media source.
WSB_Ordinal media_info_id
Definition: WsbMediaAccess.h:263
struct WSB_MediaSourceListenerInstance WSB_MediaSourceListenerInstance
Recipient of Media Source event callbacks.
Definition: WsbMediaAccess.h:406
WSB_Boolean is_dual_track
Definition: WsbMediaAccess.h:244
struct WSB_MediaFileInfo WSB_MediaFileInfo
File information for a DASH representation consisting of a single URL and no segment such as subtitle...
WSB_UInt32 type
Definition: WsbMediaAccess.h:146
Media Presentation Info.
Definition: WsbMediaAccess.h:167
WSB_Result seek_result
Definition: WsbMediaAccess.h:376
Wasabi Result.
Definition: WsbMediaAccess.h:64
WSB_Ordinal stream_index
Definition: WsbMediaAccess.h:261
const char * url
Definition: WsbMediaAccess.h:220
const char * representation_id
Definition: WsbMediaAccess.h:283
Definition: WsbMediaAccess.h:589
WSB_Boolean create_stopped
Definition: WsbMediaAccess.h:574
WSB_UInt32 fragment_index
Definition: WsbMediaAccess.h:217
MPEG DASH Common Encryption information.
Definition: WsbMediaAccess.h:229
WSB_MediaSourceEvent base
Definition: WsbMediaAccess.h:354
WSB_UInt32 WSB_Size
An unsigned integer used to represent a measurable quantity (e.g., the size of a file).
Definition: WsbTypes.h:104
Definition: WsbMediaAccess.h:88
WSB_MediaSourceState state
Definition: WsbMediaAccess.h:309
const WSB_MediaSourceInfoExtension * extensions
Definition: WsbMediaAccess.h:357
const char * codecs
Definition: WsbMediaAccess.h:284
WSB_UInt32 timescale
Definition: WsbMediaAccess.h:219
Definition: WsbMediaAccess.h:49
const WSB_MediaSourceInfoExtension * extensions
Definition: WsbMediaAccess.h:322