-
Notifications
You must be signed in to change notification settings - Fork 120
feat(widget-meet): Render video srcObject instead of url #114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
el.srcObject = srcObject; | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have to do this because React strips out all non-whitelisted props. Currently srcObject
is not allowed
We should track this as well: facebook/react#9146 |
src={src} | ||
/> | ||
); | ||
} | ||
|
||
Video.propTypes = { | ||
audioMuted: PropTypes.bool, | ||
src: PropTypes.string.isRequired | ||
src: PropTypes.string, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we get rid of src entirely?
@@ -75,7 +77,8 @@ export default function reducer(state = initialState, action) { | |||
const mediaState = { | |||
localAudioDirection: call.localAudioDirection, | |||
localVideoDirection: call.localVideoDirection, | |||
localMediaStreamUrl: call.localMediaStreamUrl | |||
localMediaStreamUrl: call.localMediaStreamUrl, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we stop using the url fields entirely?
toPersonAvatar, | ||
toPersonName | ||
}) { | ||
const connectedClass = remoteMediaStreamUrl && styles.callConnected; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we still storing the remote/local media stream url if we're not using it?
With
createObjectURL
losing support for media streams, we've created a work around for the react video element to support asrcObject