Wasabi ExpressPlay SDK for Embedded Systems
1.23.0
|
Wasabi Playback Enabler API. More...
#include "WsbTypes.h"
#include "Sushi.h"
#include "WsbRightsEnabler.h"
#include "WsbMediaFile.h"
#include "WsbKeyManager.h"
Go to the source code of this file.
Typedefs | |
typedef struct WSB_PlaybackEnabler | WSB_PlaybackEnabler |
A WSB_PlaybackEnabler object can be used to do everything possible to obtain a valid license for a given WSB_MediaFile object (using an internal WSB_RightsEnabler object) and then exercise this license and populate a WSB_KeyManager object with the content keys. More... | |
Functions | |
WSB_EXPORT WSB_Result | WSB_PlaybackEnabler_Create (WSB_RightsEnabler_EventListener listener, WSB_PlaybackEnabler **enabler) |
Creates an instance of a WSB_PlaybackEnabler object. More... | |
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_* flags. More... | |
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. More... | |
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. More... | |
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. More... | |
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, which MUST occur before calling this method. More... | |
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 WSB_PlaybackEnabler_PerformPlayAction has been inspected and the caller has made sure that no critical unsupported callbacks/obligations were present. More... | |
WSB_EXPORT WSB_Result | WSB_PlaybackEnabler_Destroy (WSB_PlaybackEnabler *self) |
Destroys the WSB_PlaybackEnabler object. More... | |
Wasabi Playback Enabler API.
typedef struct WSB_PlaybackEnabler WSB_PlaybackEnabler |
A WSB_PlaybackEnabler object can be used to do everything possible to obtain a valid license for a given WSB_MediaFile object (using an internal WSB_RightsEnabler object) and then exercise this license and populate a WSB_KeyManager object with the content keys.