4. Interface (接口)
4. Interface (接口)
本节详细说明了实现 JSEP 功能所必须具备的基本操作。W3C API 中公开的实际 API 可能具有略微不同的语法, 但应该能够轻松映射到这些概念。
子章节
- 4.1. PeerConnection
- 4.1.1. Constructor (构造函数)
- 4.1.2. addTrack
- 4.1.3. removeTrack
- 4.1.4. addTransceiver
- 4.1.5. onaddtrack Event (事件)
- 4.1.6. createDataChannel
- 4.1.7. ondatachannel Event (事件)
- 4.1.8. createOffer
- 4.1.9. createAnswer
- 4.1.10. SessionDescriptionType
- 4.1.11. setLocalDescription
- 4.1.12. setRemoteDescription
- 4.1.13. currentLocalDescription
- 4.1.14. pendingLocalDescription
- 4.1.15. currentRemoteDescription
- 4.1.16. pendingRemoteDescription
- 4.1.17. canTrickleIceCandidates
- 4.1.18. setConfiguration
- 4.1.19. addIceCandidate
- 4.1.20. onicecandidate Event (事件)
- 4.2. RtpTransceiver