Is there anyway to get videojs-record to work on phone?

92
February 13, 2020, at 02:00 AM

Hi so as you can see i have a problem with videojs-recorder, problem is i can't get access to my cam on phone. I use code down below and i am testing it with remote dev tools on chrome. Error is:

VIDEOJS: ERROR: TypeError: Cannot read property 'getUserMedia' of undefined

This is my code:

    let player;
    const options = {
      controls: true,
          width: 300,
          height: 300,
          plugins: {
              record: {
                  audio: true,
                  screen: true,
                  image: false,
                  maxLength: 3600,
                  debug: true,
              }
          }
    };
    player = videojs("myVideo", options , function(){
          // print version information at startup
          videojs.log('Using video.js', videojs.VERSION,
              'with videojs-record', videojs.getPluginVersion('record'),
              'and recordrtc', RecordRTC.version);
    });
    // error handling
    player.on('deviceError', function() {
        console.log('device error:', player.deviceErrorCode);
    });
    player.on('error', function(element, error) {
        console.error(error);
    });
    player.on('startRecord', function() {
        console.log('started recording!');
    });

    player.on('finishRecord', function() {
        console.log('finished recording: ', player.recordedData);
    });

Edit:

Currently i am using 2.1.2 and i am unable to do update.

READ ALSO
Hide a controller with `dat.gui`

Hide a controller with `dat.gui`

I have the following code for a simple GUI (also in jsfiddlenet):

127
Pass parameter to javascript function in Go template

Pass parameter to javascript function in Go template

I have the following in my Go's template

97
Load More data jumps up after loading data AngluarJS with fireFox

Load More data jumps up after loading data AngluarJS with fireFox

When I load dynamic data into my page using AngularJS, the page jumps to the top (The containing element) if I use EnablePromise functionThis happens with Firefox but not with Chrome

68