H5|App 唤起 Zoom App 协议

in 其他 with 0 comment

此为JS函数唤起,App唤起同理

url 为从zoom获取的进入直播间的h5地址
const openZoomApp = url => {
    if(is_weixn()) {
        openUrl(url);
        return;
    }
    const urlObj = new URL(url);
    const params = new URLSearchParams(urlObj.search);
    const pwd = params.get('pwd');
    const confno = urlObj.pathname.replace('/j/', '');
    openUrl(`zoomus://us05web.zoom.us/join?action=join&confno=${confno}&pwd=${pwd}`);
};
Comments are closed.