net.polyv.live.v1.config
类 InitConfig

java.lang.Object
  继承者 net.polyv.live.v1.config.InitConfig

public class InitConfig
extends Object


方法摘要
static void initPolyvLive(String appId, String userId, String appSecret)
          初始化配置
static void initPolyvLiveByFile(String path)
          初始化配置 从文件读取JSON初始化配置,JSON格式如下:liveConfig:直播配置,vodConfig:点播配置 {"liveConfig":{"appId":"xxx","userId":"xxx","appSecret":"xxx"},"vodConfig":{"userId":"xxx","writeToken":"xxxxxxe","readToken":"xxxxxx","secretKey":"xxxx"}}
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

方法详细信息

initPolyvLive

public static void initPolyvLive(String appId,
                                 String userId,
                                 String appSecret)
初始化配置


initPolyvLiveByFile

public static void initPolyvLiveByFile(String path)
初始化配置 从文件读取JSON初始化配置,JSON格式如下:liveConfig:直播配置,vodConfig:点播配置 {"liveConfig":{"appId":"xxx","userId":"xxx","appSecret":"xxx"},"vodConfig":{"userId":"xxx","writeToken":"xxxxxxe","readToken":"xxxxxx","secretKey":"xxxx"}}



Copyright © 2020. All Rights Reserved.