Im looking into using agora as a audio alternative on ios devices and id like to know if anyone else has something they are using.
ok something interesting when i try using web sdk in chrome on IOS it only gets to the first line then stops.
ok so here is my code using CDN @tommy
here
const xhr = new XMLHttpRequest();
xhr.open("GET",'credentials.php');
xhr.onload=()=>{
var input =JSON.parse(xhr.response);
//it stops at this line here
console.log('checkSystemRequirements');
console.log(JSON.stringify(ZoomMtg.checkSystemRequirements()));
ZoomMtg.preLoadWasm();
ZoomMtg.prepareJssdk();
/**
* NEVER PUT YOUR ACTUAL API SECRET IN CLIENT SIDE CODE, THIS IS JUST FOR QUICK PROTOTYPING
* The below generateSignature should be done server side as not to expose your api secret in public
* You can find an eaxmple in here: https://marketplace.zoom.us/docs/sdk/native-sdks/web/essential/signature
*/
var usrnme = input.username;
var email = input.useremail;
var API_SECRET = input.API_SECRET;
var API_KEY = input.API_KEY;
var meetingNumber = parseInt(input.meetingNumber);
var currentSite = "";
console.log(input);
var meetConfig = {
apiKey: API_KEY,
apiSecret: API_SECRET,
meetingNumber: meetingNumber,
userName: usrnme,
userEmail: email,
passWord: input.passWord,
leaveUrl: currentSite,
role: 0
};
console.log(meetConfig);
testTool.setCookie("meeting_number", meetConfig.meetingNumber);
testTool.setCookie("meeting_pwd", meetConfig.passWord);
var data ={
meetingNumber: meetConfig.meetingNumber,
apiKey: meetConfig.apiKey,
apiSecret: meetConfig.apiSecret,
role: 0
}
getSignature =()=>{
xhr.open('POST','/');
xhr.setRequestHeader("Content-Type", "application/json");
xhr.send(JSON.stringify(data));
xhr.onload=()=>{
alert(xhr.response);
}
}
ZoomMtg.init({
leaveUrl: currentSite,
success: function () {
ZoomMtg.join(
{
meetingNumber:meetConfig.meetingNumber,
userName: meetConfig.userName,
signature: signature,
userEmail: meetConfig.userEmail,
apiKey: meetConfig.apiKey,
passWord: meetConfig.passWord,
success: function(res){
$('#nav-tool').hide();
console.log('join meeting success');
console.log(res);
},
error: function(res) {
console.log(res);
}
}
);
},
error: function(res) {
console.log(res);
}
});
}
xhr.send();
Hey @Evanatzend,
If the code stops running before it reaches the Web SDK then the issue is with your code.
Are there any errors thrown in the browser console?
Thanks,
Tommy
No errors which is baffling, code works fine on android chrome and the issue on iOS is confounding to say the least.
Hey @Evanatzend,
Can you try removing this line:
console.log(JSON.stringify(ZoomMtg.checkSystemRequirements()));
Let me know if that fixes it.
Thanks,
Tommy