Clicky

function Wo_Ajax_Requests_File(){ return "https://bestchristian.com/requests.php" } function RunLiveAgora(channelName,DIV_ID,token) { var agoraAppId = ''; var token = token; var client = AgoraRTC.createClient({mode: 'live', codec: 'vp8'}); client.init(agoraAppId, function () { client.setClientRole('audience', function() { }, function(e) { }); let rand = Math.floor(Math.random() * 1000000); client.join(token, channelName, rand, function(uid) { }, function(err) { }); }, function (err) { }); client.on('stream-added', function (evt) { var stream = evt.stream; var streamId = stream.getId(); client.subscribe(stream, function (err) { }); }); client.on('stream-subscribed', function (evt) { var remoteStream = evt.stream; remoteStream.play(DIV_ID); $('#player_'+remoteStream.getId()).addClass('embed-responsive-item'); }); }
Emergen Report Cover Image
Emergen Report Profile Picture
Emergen Report
@emergenreport
0 Me gusta
Invita a tus amigos / seguidores para ver si les gusta esto
No tienes más amigos que invitar...
Pin

We aim to help you optimize your strategies and maximize returns by capitalizing on the available and arising opportunities.