![]() Simply supplying "h264" worked for the MediaRecorder, but the SourceBuffer needed me to pass along the codec parameters. It was the parameters that were not permitted. I found that the issue was the codec still, and that the error messaging about the "operation" not being permitted was slightly misleading. Maybe add a source buffer with different codecs.Maybe add a source buffer before the media source has been attached to a video element.Maybe add a source buffer before play is called on the video.So I created a one-off page to try and call just this method under different circumstances: I had previously figured out that we were getting an error "The operation is not supported" when trying to call addSourceBuffer. Unfortunately Safari lacks the tooling of Chrome and Firefox to dig deep into media internals, so there's a lot of guesswork involved. ![]() I will continue to try and diagnose how to get this working in Safari, but for now I've at least addresses Firefox and Chrome Update 1 ![]() NotSupportedError: The operation is not supported. This successfully gave me MediaRecorder started, but failed at the line addSourceBuffer with the new error: the ondataavailable callback for the MediaRecorderĪsync function handleDataAvailable(event) In order to achieve this I am trying to pass recorded blobs to a BufferSource and use the corresponding MediaSource as source for a video element. As an exercise in learning WebRTC I am trying to to show the local webcam and side by side with a delayed playback of the webcam.
0 Comments
Leave a Reply. |