yandex
loader

please wait

  • Sonam Vashishth Dec-24-2018 08:57:56 AM ( 4 months ago )

    How to add video codecs on recording streams?

  • Lavish Roy Dec-24-2018 09:05:35 AM ( 4 months ago )

    let options = {mimeType: 'video/webm;codecs=vp9'};

      if (!MediaRecorder.isTypeSupported(options.mimeType)) {

        console.error(`${options.mimeType} is not Supported`);

        errorMsgElement.innerHTML = `${options.mimeType} is not Supported`;

        options = {mimeType: 'video/webm;codecs=vp8'};

        if (!MediaRecorder.isTypeSupported(options.mimeType)) {

          console.error(`${options.mimeType} is not Supported`);

          errorMsgElement.innerHTML = `${options.mimeType} is not Supported`;

          options = {mimeType: 'video/webm'};

          if (!MediaRecorder.isTypeSupported(options.mimeType)) {

            console.error(`${options.mimeType} is not Supported`);

            errorMsgElement.innerHTML = `${options.mimeType} is not Supported`;

            options = {mimeType: ''};

Please login

Similar Discussion

Recommended For You