21 #ifndef _WSB_MEDIA_PLAYBACK_H_ 22 #define _WSB_MEDIA_PLAYBACK_H_ 40 #if defined(__cplusplus) 50 #define WSB_PLAYER_STREAM_INFO_MASK_ALL 0x1FFF 52 #define WSB_PLAYER_STREAM_INFO_MASK_TYPE 0x0001 53 #define WSB_PLAYER_STREAM_INFO_MASK_ID 0x0002 54 #define WSB_PLAYER_STREAM_INFO_MASK_NOMINAL_BITRATE 0x0004 55 #define WSB_PLAYER_STREAM_INFO_MASK_AVERAGE_BITRATE 0x0008 56 #define WSB_PLAYER_STREAM_INFO_MASK_INSTANT_BITRATE 0x0010 57 #define WSB_PLAYER_STREAM_INFO_MASK_SIZE 0x0020 58 #define WSB_PLAYER_STREAM_INFO_MASK_DURATION 0x0040 59 #define WSB_PLAYER_STREAM_INFO_MASK_SAMPLE_RATE 0x0080 60 #define WSB_PLAYER_STREAM_INFO_MASK_CHANNEL_COUNT 0x0100 61 #define WSB_PLAYER_STREAM_INFO_MASK_WIDTH 0x0200 62 #define WSB_PLAYER_STREAM_INFO_MASK_HEIGHT 0x0400 63 #define WSB_PLAYER_STREAM_INFO_MASK_FLAGS 0x0800 64 #define WSB_PLAYER_STREAM_INFO_MASK_DATA_TYPE 0x1000 69 #define WSB_PLAYER_INPUT_FLAG_AUDIO_TRACK 0x0001 70 #define WSB_PLAYER_INPUT_FLAG_VIDEO_TRACK 0x0002 71 #define WSB_PLAYER_INPUT_FLAG_TRACK_BY_INDEX 0x0004 74 #define WSB_PLAYER_STREAM_INFO_FLAG_VBR 0x01 77 #define WSB_PLAYER_STREAM_INFO_FLAG_CONTINUOUS 0x02 251 WSB_Player_DecoderEventType
type;
395 WSB_Player_MsgThreadModel msg_model,
464 const char* mime_type,
466 const void* license_data,
516 #define WSB_PROPERTY_NAME_PLAYER_EXTRA_CONTENT_ACCESS_HTTP_HEADERS \ 517 "Wasabi.Player.ExtraContentAccessHttpHeaders" 534 WSB_Player_PropertyScope scope,
604 #if defined(__cplusplus)
Event data for reporting failure of a requested command.
Definition: WsbMediaPlayback.h:203
WSB_StreamInfo info
Definition: WsbMediaPlayback.h:304
Event data for reporting information about a property.
Definition: WsbMediaPlayback.h:352
WSB_Mask update_mask
Definition: WsbMediaPlayback.h:303
Definition: WsbTypes.h:157
SHI_DataValue value
Item data value.
Definition: WsbMediaPlayback.h:358
WSB_EXPORT WSB_Result WSB_Player_SetFullscreen(WSB_Player *playback, WSB_Boolean fullscreen)
Enters or exits fullscreen mode.
WSB_EXPORT WSB_Result WSB_Player_SetInput(WSB_Player *playback, const char *name, const char *mime_type)
Opens a named media file.
WSB_Boolean
Boolean type used for variables that can be true (WSB_TRUE) or false (WSB_FALSE). ...
Definition: WsbTypes.h:71
void * instance
Definition: WsbMediaPlayback.h:367
Event data for reporting the DRM state.
Definition: WsbMediaPlayback.h:314
WSB_EXPORT WSB_Result WSB_Player_SetVideoOutput(WSB_Player *playback, const char *output_name)
Sets the destination for the video output, such as a pointer to a window encoded as hex in the string...
WSB_EXPORT WSB_Result WSB_Player_Seek(WSB_Player *playback, WSB_Int32 offset, WSB_Int32 range)
Attempts to move the stream to the specified position.
WSB_Result result
Definition: WsbMediaPlayback.h:206
Event data for reporting the number of buffer bytes available versus the number needed.
Definition: WsbMediaPlayback.h:327
Structure used as the base for all event structures.
Definition: WsbMediaPlayback.h:180
WSB_EXPORT WSB_Result WSB_Player_Destroy(WSB_Player *playback)
Destroys the specified WSB_Player object.
Definition: WsbTypes.h:162
Event data for reporting a seek to a particular time in a media presentation.
Definition: WsbMediaPlayback.h:276
Union of different possible types of values encapsulated by a SHI_Data object.
Definition: ShiData.h:90
WSB_Player_DecoderEventType type
Definition: WsbMediaPlayback.h:251
WSB_EXPORT WSB_Result WSB_Player_SetVolume(WSB_Player *playback, float volume)
Sets the volume on the audio output.
WSB_EXPORT WSB_Result WSB_Player_PumpMessage(WSB_Player *playback, WSB_Int32 timeout)
Asks the WSB_Player instance to send a message in its queue to the listener registered in the call to...
SHI_DataType
Possible types of data in the value encapsulated by a SHI_Data object.
Definition: ShiData.h:37
WSB_Size available
Definition: WsbMediaPlayback.h:329
WSB_Player_Event base
Definition: WsbMediaPlayback.h:353
WSB_Size needed
Definition: WsbMediaPlayback.h:330
WSB_Result result_code
Definition: WsbMediaPlayback.h:238
WSB_StreamPosition position
Definition: WsbMediaPlayback.h:290
WSB_Player_DRMState state
Definition: WsbMediaPlayback.h:316
Event data for reporting a seek to a particular position.
Definition: WsbMediaPlayback.h:288
Event data for reporting that the decoder sent a pong reply in response to a ping.
Definition: WsbMediaPlayback.h:217
SHI_DataType type
Type of item data value.
Definition: WsbMediaPlayback.h:357
Error code and message for a decoder event notification.
Definition: WsbMediaPlayback.h:237
This structure pairs a listener instance value with a function pointer for receiving events...
Definition: WsbMediaPlayback.h:366
const char * name
Definition: WsbMediaPlayback.h:356
WSB_EXPORT WSB_Result WSB_Player_SetInputEx(WSB_Player *playback, const char *name, const char *mime_type, WSB_Int32 flags, const void *license_data, WSB_Size license_data_size, WSB_Int32 audio_track, WSB_Int32 video_track)
Opens a named media file, and optionally specifies the particular audio and/or video track to be play...
WSB_Player_Event base
Definition: WsbMediaPlayback.h:204
Event data for reporting information about a stream, and the update mask.
Definition: WsbMediaPlayback.h:301
Event data for reporting a successful command execution.
Definition: WsbMediaPlayback.h:191
float volume
Definition: WsbMediaPlayback.h:266
WSB_Player_Event base
Definition: WsbMediaPlayback.h:302
int WSB_Result
Signed integer value representing a function or method result (return value).
Definition: WsbTypes.h:83
WSB_Player_Event base
Definition: WsbMediaPlayback.h:218
WSB_EXPORT WSB_Result WSB_Player_Play(WSB_Player *playback)
Commences play.
Event data for reporting a decoder event type and error details.
Definition: WsbMediaPlayback.h:249
WSB_UInt32 WSB_Mask
An unsigned integer used to represent a bit mask.
Definition: WsbTypes.h:98
WSB_Player_DecoderState state
Definition: WsbMediaPlayback.h:231
WSB_TimeCode timecode
Definition: WsbMediaPlayback.h:278
WSB_EXPORT WSB_Result WSB_Player_SetProperty(WSB_Player *playback, WSB_Player_PropertyScope scope, const char *target, const char *name, SHI_DataType type, const SHI_DataValue *value)
Sets a property.
WSB_Player_Event base
Definition: WsbMediaPlayback.h:250
const char * source
Definition: WsbMediaPlayback.h:355
Event data for reporting a volume change.
Definition: WsbMediaPlayback.h:264
WSB_Player_Event base
Definition: WsbMediaPlayback.h:265
WSB_Player_EventType type
Definition: WsbMediaPlayback.h:181
WSB_Player_Event base
Definition: WsbMediaPlayback.h:289
WSB_Player_CommandId command
Definition: WsbMediaPlayback.h:205
WSB_Player_DecodingErrorDetails decoding_error
Definition: WsbMediaPlayback.h:253
Event data for reporting a new decoder state.
Definition: WsbMediaPlayback.h:229
const void * cookie
Definition: WsbMediaPlayback.h:219
WSB_Player_PropertyScope scope
Definition: WsbMediaPlayback.h:354
WSB_Player_Event base
Definition: WsbMediaPlayback.h:230
Event data for reporting a URL to which the player was directed.
Definition: WsbMediaPlayback.h:340
WSB_Player_Event base
Definition: WsbMediaPlayback.h:328
signed int WSB_Int32
32-bit (or more) signed integer
Definition: WsbTypes.h:37
WSB_Player_Event base
Definition: WsbMediaPlayback.h:277
WSB_Player_CommandId command
Definition: WsbMediaPlayback.h:193
WSB_EXPORT WSB_Result WSB_Player_SetAudioOutput(WSB_Player *playback, const char *output_name)
Sets the destination for the audio output.
WSB_Player_Event base
Definition: WsbMediaPlayback.h:192
WSB_EXPORT WSB_Result WSB_Player_Stop(WSB_Player *playback)
Stops output.
WSB_Player_Event base
Definition: WsbMediaPlayback.h:315
WSB_EXPORT WSB_Result WSB_Player_Pause(WSB_Player *playback)
Pauses output (playback).
const char * message
Definition: WsbMediaPlayback.h:239
WSB_UInt32 WSB_Size
An unsigned integer used to represent a measurable quantity (e.g., the size of a file).
Definition: WsbTypes.h:104
const char * goto_url
Definition: WsbMediaPlayback.h:342
WSB_Player_Event base
Definition: WsbMediaPlayback.h:341
WSB_EXPORT WSB_Result WSB_Player_Create(WSB_Player_EventListener listener, WSB_Player_MsgThreadModel msg_model, WSB_Player **playback)
Creates an instance of a WSB_Player object, and registers the passed-in listener to be notified of pl...
A timecode suitable for media stream position.
Definition: WsbTypes.h:150