• Documentation
  • Example
  • Contact
  • Download
  • jRecorder Example 2 - Insert flash recorder inside a particular element

    In this example, you add a flash recorder with some call back function. $.jRecorder function is called with all initial settings and a second parameter indicate where to insert this recorder. Call the $.jRecorder script only after the div. (Better to use javascript at the bottom always, or you can use $(document).ready function) See example1.html for inserting this inside body tag.

    Time: 00:00
    Level:
    Status:

    This Record button trigger the record event. See the javascript example in the bottom of the page. (View Source in your browser).

    $('#record').click(function(){
                        
        $.jRecorder.record(30); //record up to 30 sec and stops automatically
                       
       })
    


    This Stop button trigger the stop record event.

    $('#stop').click(function(){
                        
        $.jRecorder.stop();
                       
       })
    


    Time area is used to update the time. There is an event Listener which update the recording time dynamically.

        
        callback_activityTime:     function(time){callback_activityTime(time);  //see the initialisation
        
        //function callback
        function callback_activityTime(time)
         {
          
          
           $('#time').html(time);
           
         }