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 240 of file plv-player-def.h.

Constructor & Destructor Documentation

◆ PLVAccountInfo()

PLVAccountInfo ( )
inline

Definition at line 241 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 253 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.

Deprecated
Suggest using secret only on the server.

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

◆ secretKey

const char* secretKey

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

Deprecated
Suggest using secret only on the server.

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

◆ subAccount

bool subAccount

use sub account.

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

◆ userId

const char* userId

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

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


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