21 #ifndef _WSB_PLAYBACK_ENABLER_H_ 22 #define _WSB_PLAYBACK_ENABLER_H_ 44 #if defined(__cplusplus) 133 const void* license_data,
160 const char* content_id,
162 const void* license_data,
235 #if defined(__cplusplus) WSB_EXPORT WSB_Result WSB_PlaybackEnabler_EnableContentId(WSB_PlaybackEnabler *self, const char *content_id, const char *sla_url, const void *license_data, WSB_Size license_data_size)
Tries all available avenues to obtain a working license for the content with the specified content ID...
This struct pairs a listener instance value with a function pointer for receiving events...
Definition: WsbRightsEnabler.h:148
Wasabi Rights Enabler API.
WSB_EXPORT WSB_Result WSB_PlaybackEnabler_Create(WSB_RightsEnabler_EventListener listener, WSB_PlaybackEnabler **enabler)
Creates an instance of a WSB_PlaybackEnabler object.
WSB_EXPORT WSB_Result WSB_PlaybackEnabler_Destroy(WSB_PlaybackEnabler *self)
Destroys the WSB_PlaybackEnabler object.
struct SHI_Action SHI_Action
A SHI_Action object represents an action that can be performed on the content item represented by a l...
Definition: ShiAction.h:575
struct WSB_PlaybackEnabler WSB_PlaybackEnabler
A WSB_PlaybackEnabler object can be used to do everything possible to obtain a valid license for a gi...
Definition: WsbPlaybackEnabler.h:42
WSB_EXPORT WSB_Result WSB_PlaybackEnabler_ResolveUrl(WSB_PlaybackEnabler *self, const char *url, SHI_Data **content_url)
Resolves a URL that is potentially an MS3 URL into a content URL.
WSB_EXPORT WSB_Result WSB_PlaybackEnabler_AcceptActionResult(WSB_PlaybackEnabler *self, WSB_KeyManager *key_manager, SHI_Action **action)
This method must be called after the action result (assuming the right to play was granted) from the ...
int WSB_Result
Signed integer value representing a function or method result (return value).
Definition: WsbTypes.h:83
WSB_EXPORT WSB_Result WSB_PlaybackEnabler_SetRightsEnablerOptions(WSB_PlaybackEnabler *self, WSB_UInt32 option_flags)
Sets the options of the internal WSB_RightsEnabler object using the WSB_RIGHTSENABLER_OPTION_FLAG_* f...
unsigned int WSB_UInt32
32-bit (or more) unsigned integer
Definition: WsbTypes.h:36
struct WSB_KeyManager WSB_KeyManager
A WSB_KeyManager object can be used to register (set) and get content keys for a playback session...
Definition: EmbProcessor.h:237
struct SHI_Data SHI_Data
A SHI_Data object represents a typed data object.
Definition: EmbProcessor.h:231
struct SHI_ActionResult SHI_ActionResult
A SHI_ActionResult object represents the result returned by several different SHI_Action methods...
Definition: ShiAction.h:444
WSB_EXPORT WSB_Result WSB_PlaybackEnabler_PerformPlayAction(WSB_PlaybackEnabler *self, SHI_ActionResult **action_result)
Performs the play action on the license obtained through the WSB_PlaybackEnabler_EnableMediaFile call...
WSB_UInt32 WSB_Size
An unsigned integer used to represent a measurable quantity (e.g., the size of a file).
Definition: WsbTypes.h:104
WSB_EXPORT WSB_Result WSB_PlaybackEnabler_EnableMediaFile(WSB_PlaybackEnabler *self, WSB_MediaFile *file, const void *license_data, WSB_Size license_data_size)
Tries all available avenues to obtain a working license for the content in a specified media file...