mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-11 19:36:35 +00:00
WebRTC fix for Safari (#10602)
This commit is contained in:
parent
d04823b4c5
commit
c238c7dbbc
@ -80,6 +80,9 @@ class HaWebRtcPlayer extends LitElement {
|
|||||||
// Some cameras (such as nest) require a data channel to establish a stream
|
// Some cameras (such as nest) require a data channel to establish a stream
|
||||||
// however, not used by any integrations.
|
// however, not used by any integrations.
|
||||||
peerConnection.createDataChannel("dataSendChannel");
|
peerConnection.createDataChannel("dataSendChannel");
|
||||||
|
peerConnection.addTransceiver("audio", { direction: "recvonly" });
|
||||||
|
peerConnection.addTransceiver("video", { direction: "recvonly" });
|
||||||
|
|
||||||
const offerOptions: RTCOfferOptions = {
|
const offerOptions: RTCOfferOptions = {
|
||||||
offerToReceiveAudio: true,
|
offerToReceiveAudio: true,
|
||||||
offerToReceiveVideo: true,
|
offerToReceiveVideo: true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user