Shaka Player Embedded
Classes | Macros | Functions
ShakaPlayer.mm File Reference
#import "shaka/ShakaPlayer.h"
#include <list>
#include <memory>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include "shaka/ShakaPlayerEmbedded.h"
#include "src/core/js_manager_impl.h"
#include "src/debug/mutex.h"
#include "src/js/manifest+Internal.h"
#include "src/js/player_externs+Internal.h"
#include "src/js/stats+Internal.h"
#include "src/js/track+Internal.h"
#include "src/public/ShakaPlayer+Internal.h"
#include "src/public/error_objc+Internal.h"
#include "src/public/net_objc+Internal.h"
#include "src/util/macros.h"
#include "src/util/objc_utils.h"
#include "src/util/utils.h"

Go to the source code of this file.

Macros

#define GET_VALUE(field, method)
 

Functions

NSString * ShakaPlayerLicenseServerConfig (const NSString *key_system)
 
NSString * ShakaPlayerAdvancedDrmConfig (const NSString *key_system, const NSString *config)
 
std::shared_ptr< shaka::JsManagerShakaGetGlobalEngine ()
 

Macro Definition Documentation

§ GET_VALUE

#define GET_VALUE (   field,
  method 
)
Value:
do { \
auto results = player->_player->method(); \
if (!results.has_error()) { \
using T = typename std::decay<decltype(results.results())>::type; \
ret.field = shaka::util::ObjcConverter<T>::ToObjc(results.results()); \
} \
} while (false)
ExceptionCode type

Function Documentation

§ ShakaGetGlobalEngine()

std::shared_ptr<shaka::JsManager> ShakaGetGlobalEngine ( )

Definition at line 219 of file ShakaPlayer.mm.

§ ShakaPlayerAdvancedDrmConfig()

NSString* ShakaPlayerAdvancedDrmConfig ( const NSString *  key_system,
const NSString *  config 
)

This creates a configuration key that sets advanced DRM configuration for the given key system.

[player configure:ShakaPlayerAdvancedDrmConfig(@"com.widevine.alpha", @"videoRobustness")
withString:@"SW_SECURE_DECODE"];

Definition at line 214 of file ShakaPlayer.mm.

§ ShakaPlayerLicenseServerConfig()

NSString* ShakaPlayerLicenseServerConfig ( const NSString *  key_system)

This creates a configuration key that sets the license server URL for the given key system.

[player configure:ShakaPlayerLicenseServerConfig(@"com.widevine.alpha")
withString:@"https://example.com/server"];

Definition at line 209 of file ShakaPlayer.mm.