static/js/loadcell_comm.js
// Handles start button action: creates local MediaStream.
Handles start button action: creates local MediaStream.
Handles start button action : creates local MediaStream .
function startAction() {
    startButton.disabled = true;
    isStop = false;
    navigator.mediaDevices.getUserMedia(mediaStreamConstraints)
    .then(gotLocalMediaStream).catch(handleLocalMediaStreamError);
    trace('Requesting local stream.');
  $.ajax({
      url: '/api',
      type: "POST",
      async: true,
      data: {
          test: 'start'
      },
      success: function(result){
          console.log("START: " + result);
      },
      error: function(request, status, error){
          console.log('START ajax 통신 실패\n' + error);
      }
  });
}
function startAction ( ) { startButton . disabled = true ; isStop = false ; navigator . mediaDevices . getUserMedia ( mediaStreamConstraints ) . then ( gotLocalMediaStream ) . catch ( handleLocalMediaStreamError ) ; trace ( 'Requesting local stream.' ) ; $ . ajax ( { url : '/api' , type : "POST" , async : true , data : { test : 'start' } , success : function ( result ) { console . log ( "START: " + result ) ; } , error : function ( request , status , error ) { console . log ( 'START ajax 통신 실패\n' + error ; } } ) ; }
Handles start button action: creates local MediaStream.
Handles start button action : creates local MediaStream .