Skip to content
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

DOMException: The play() request was interrupted by a new load request. #45

Open
edsel77 opened this issue Sep 2, 2020 · 0 comments
Open

Comments

@edsel77
Copy link

edsel77 commented Sep 2, 2020

I am encountering this error:
"DOMException: The play() request was interrupted by a new load request."

This may reference on this code:

			const remoteVideo = document.getElementById('audioRemote')
			const localVideo = document.getElementById('audioRemote')

			s.on('trackAdded', function () {
				// We need to check the peer connection to determine which track was added
				const pc = s.sessionDescriptionHandler.peerConnection

				// Gets remote tracks
				const remoteStream = new MediaStream()
				pc.getReceivers().forEach(function (receiver) {
					remoteStream.addTrack(receiver.track)
				})

				remoteVideo.srcObject = remoteStream
				remoteVideo.play()
			})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant