• 首页

  • 归档

  • 清单
    标签 歌单 书单

  • 随笔

  • 图库

  • 实验室
    图床 监控 工具 tidio

  • 友人帐

  • 留言板

  • 开往

  • 关于
    日志 MAP RSS
ghostsf

Do what i love and just do it !

09月
27
技术栈

adapter for webrtc

发表于 2020-09-27 • 字数统计 1056 • 被 1,395 人看爆

浏览器直接调用webrtc相关api接口,比如调用PeerConnection。
但是实际上不同浏览器上可能这个API不同:

W3C StandardChromeFirefox
getUserMediawebkitGetUserMediamozGetUserMedia
RTCPeerConnectionwebkitRTCPeerConnectionRTCPeerConnection
RTCSessionDescriptionRTCSessionDescriptionRTCSessionDescription
RTCIceCandidateRTCIceCandidateRTCIceCandidate

Note: 参考WebRTC APIs Interop页面的描述。

所以对于H5,推荐用一个adapter.js来支持各种浏览器。

adapter.js is a shim to insulate apps from spec changes and prefix differences in WebRTC. The prefix differences are mostly gone these days but differences in behaviour between browsers remain.

This repository used to be part of the WebRTC organisation on github but moved. We aim to keep the old repository updated with new releases.

这个库的API调用例子,参考Samples,比如PC应该用RTCPeerConnection。

分享到:
WebRTC接口设计与CDN集成方案
chrome getUserMedia errors - 网站手动设置权限
  • 文章目录
  • 站点概览
ghostsf

ghostsf

你能抓到我么?

Github Twitter Email RSS
看爆 Top5
  • 红米AC2100路由器刷openwrt固件-160mhz-插件全-出国-去广告-多拨 21,438次看爆
  • openwrt-安装软件kernel内核版本低-cannot find dependency kernel 9,470次看爆
  • 海康威视 hikvision SDK 二次开发 6,560次看爆
  • mac微信聊天记录附件清理归档备份方案 5,940次看爆
  • 简单且高度可扩展的分布式文件系统SeaweedFS 4,921次看爆

站点已运行 00 天 00 小时 00 分 00 秒(●'◡'●)ノ♥

Copyright © 2023 ghostsf 苏ICP备15036367号

Power by Halo · Theme by July