html5 android 视频通话,顶HTML5-SimpleWebRTC 实现视频通话
var webrtc = new SimpleWebRTC({// the id/element dom element that will hold "our" videolocalVideoEl: 'localVideo',// the id/element dom element that will hold remote videosremoteVideosEl: 'remotesVide
·
var webrtc = new SimpleWebRTC({
// the id/element dom element that will hold "our" video
localVideoEl: 'localVideo',
// the id/element dom element that will hold remote videos
remoteVideosEl: 'remotesVideos',
// immediately ask for camera access
autoRequestMedia: true
});
// we have to wait until it's ready
webrtc.on('readyToCall', function () {
// you can name it anything
webrtc.joinRoom('your awesome room name');
});
更多推荐



所有评论(0)