plv player sdk doc
Loading...
Searching...
No Matches
Public Member Functions | Data Fields
PLVAccountInfo Struct Reference

#include <plv-player-def.h>

Public Member Functions

 PLVAccountInfo ()
 

Data Fields

const char * userId
 the userId of the main account. get from SDK provider.
 
const char * secretKey
 if use subAccount, this can be empty, get from SDK provider.
 
const char * appId
 appId of sub account, if use main account, can be empty. get from SDK provider.
 
const char * appSecret
 appSecret of sub account, if use main account, can be empty. get from SDK provider.
 
bool subAccount
 use sub account.
 

Detailed Description

account info setting.

Sample
@details use main account
PLVAccountInfo info = {userId, secretKey, 0, 0, false};
int ret = PLVInitSdkLibrary(&info);
@details use sub account
PLVAccountInfo info = {userId, 0, appId, appSecret, true};
int ret = PLVInitSdkLibrary(&info);
PLAYERSDK_API int PLAYERSDK_CALL PLVInitSdkLibrary(const PLVAccountInfo *info)
init the sdk.
const char * appSecret
appSecret of sub account, if use main account, can be empty. get from SDK provider.
const char * userId
the userId of the main account. get from SDK provider.
const char * secretKey
if use subAccount, this can be empty, get from SDK provider.
const char * appId
appId of sub account, if use main account, can be empty. get from SDK provider.

Definition at line 239 of file plv-player-def.h.

Constructor & Destructor Documentation

◆ PLVAccountInfo()

PLVAccountInfo ( )
inline

Definition at line 240 of file plv-player-def.h.

Field Documentation

◆ appId

const char* appId

appId of sub account, if use main account, can be empty. get from SDK provider.

Definition at line 249 of file plv-player-def.h.

◆ appSecret

const char* appSecret

appSecret of sub account, if use main account, can be empty. get from SDK provider.

Definition at line 250 of file plv-player-def.h.

◆ secretKey

const char* secretKey

if use subAccount, this can be empty, get from SDK provider.

Definition at line 248 of file plv-player-def.h.

◆ subAccount

bool subAccount

use sub account.

Definition at line 251 of file plv-player-def.h.

◆ userId

const char* userId

the userId of the main account. get from SDK provider.

Definition at line 247 of file plv-player-def.h.


The documentation for this struct was generated from the following file: