终端Scheme集成
更新时间:2024-11-07 16:49:51

直接入会url规则

Cloud版本链接格式:

ymeeting://onylyun.com/app/joinmeeting?number=818888887777&password=123456&nonceId=xxx

参数描述

参数 是否必须 描述
ymeeting:// 代表唤醒目标是vc客户端 ymeeting://
onylyun.com/ 会议的服务器地址 实际的服务器地址和端口
app/joinmeeting? 代表要执行的操作是入会 app/joinmeeting?
number 会议号 实际的会议号码
password 会议的密码 实际的会议密码
nonceId 登录授权码nonce信息,携带后可实现唤醒客户端入会时先自动登录上对应用户账号。
tips:客户端版本请前往官网下载最新4.5.x版本。
通过api接口获取到指定用户的nonce值,获取后5分钟内有效期,使用一次即失效。
接口参考:涉及3个接口
1.申请访问token
2.获取Yealink的Access Key
3.获取页面免登录跳转的nonce信息

直接入会url示例__Android_

void joinYmsMeeting()
    {
    Uri.Builder builder = new Uri.Builder()
        .scheme("ymeeting")
        .authority("onylyun.com")
        .path("/app/joinmeeting")
        .appendQueryParameter("number","818888887777")
        .appendQueryParameter("password","123456")
        .appendQueryParameter("nonceId","xxx");
    Intent intent = new Intent();
    intent.setData(builder.build());
    startActivity(intent);
    //"ymeeting://onylyun.com/app/joinmeeting?number=818888887777&password=123456&nonceId=xxx"
    }  

直接入会url示例_iOS

func joinUCMeeting() {
        let scheme = "ymeeting"
            let host = "onylyun.com"
            let path = "/app/joinmeeting"
            let number = "818888887777"
            let password = "123456"
            let nonceId = "xxx"
            // "ymeeting://onylyun.com/app/joinmeeting?number=818888887777&password=123456&nonceId=xxx
            let urlString = "\(scheme)://\(host)\(path)?number=\(number)&password=\(password)&nonceId=\(nonceId)"
            guard let url = URL(string: urlString) else {
                    return
                }
            UIApplication.shared.openURL(url)
            }

直接入会url示例_PC(windows/Mac)

void joinVCMeeting()
    {
    CString strServer = _T("onylyun.com");
    CString strMeetingNumber = _T("818888887777");
    CString strMeetingPassword = _T("123456");
    CString strNonce = _T("xxx");
    //combine url
    CString strUrl = _T("ymeeting://")
        + strServer + _T("/app/joinmeeting?")
        + _T("number=") + strMeetingNumber
        + _T("&password=") + strMeetingPassword
        + _T("&nonceId=") + strNonce;
    //"ymeeting://onylyun.com/app/joinmeeting?number=818888887777&password=123456&nonceId=xxx"
    ShellExecute(0, _T("open"), strUrl, NULL, NULL, SW_SHOWNORMAL);
    }
本页目录