网页启动直播客户端
描述
提供网页启动客户端的一种支持,让您快速从页面中启动polyv直播客户端,而不必去应用程序列表中查找
新版(4.x)客户端启动
注:只适用于新版客户端,旧版客户端会打开失败
const client4xStart = 'polyvlive';
const url = `${client4xStart}://start?channelId=${channelId}&passwd=${password}&pdn=api.polyv.net`;
window.location.assign(url);
旧版客户端启动(目前新旧版都兼容,之后新版客户端会移除支持)
const clientStart = 'polyvlive';
const url = `${clientStart}:/${channelId}&${password}`;
window.location.assign(url);
示例
Last updated
Was this helpful?