function Wo_Ajax_Requests_File(){ return "https://selficlub.com/requests.php" } function RunLiveAgora(channelName,DIV_ID,token) { var agoraAppId = '505b88ec12034d12b77ceb8af75add9f'; 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'); }); }
Vietnovatech là trang chia sẻ công nghệ sáng tạo, nơi cập nhật những xu hướng mới, giải pháp đột phá và kiến thức hữu ích giúp bạn bắt kịp nhịp phát triển của thế giới số.
Website chính thức: https://vietnovatech.site/
Email: cskh@vietnovatech.site
Hotline: 59 Đ. Số 6, Tân Tạo A, Bình Tân, Thành phố Hồ Chí Minh, Vietnam
Địa chỉ: 0836214945
#vietnovatech #vietnovatechsite #link_vao_vietnovatech #trang_chu_vietnovatech #vietnovatech_dang_ky