Giter Site home page Giter Site logo

Comments (11)

v3ss0n avatar v3ss0n commented on May 22, 2024

yeah that will be very useful for our realtime chat too.

from videojs-record.

erikdonohoo avatar erikdonohoo commented on May 22, 2024

Is this something that still needs to be done? We would also like to have this functionality and I'm happy to do the work if someone can help point me in the right direction

from videojs-record.

thijstriemstra avatar thijstriemstra commented on May 22, 2024

PRs are welcome!

from videojs-record.

faraz-purelogics avatar faraz-purelogics commented on May 22, 2024

Hi @thijstriemstra ,

Very nice library worked very well.
I will be very thank full to anyone who let me know how to achieve functionality of getting blob after some time intervals.

Thanks,
Faraz

from videojs-record.

thijstriemstra avatar thijstriemstra commented on May 22, 2024

It looks like the latest recordrtc improves support for this. I added a PR (muaz-khan/RecordRTC#283) and will implement a timeSlice option in this plugin.

from videojs-record.

thijstriemstra avatar thijstriemstra commented on May 22, 2024

@faraz-purelogics and @erikdonohoo it's now implemented in master, see https://github.com/collab-project/videojs-record#timestamps. Can you give that a try?

from videojs-record.

code-wizard avatar code-wizard commented on May 22, 2024

Hey Am having issues with the timestamp event. I am trying to upload a "slice" of the recorded video. Below is what I noticed.

  1. The first slice of the player.recordedData contains a blob of size 1

  2. The subsequent slices contain blob array of size + 1

I only want to send a particular slice at a time and not the total recorded file. How do I achieve this?

from videojs-record.

code-wizard avatar code-wizard commented on May 22, 2024

I just saw this block of code under the timestamp event section of your documentation

// monitor stream data during recording
player.on('timestamp', function() {
    // timestamps
    console.log('current timestamp: ', player.currentTimestamp);
    console.log('all timestamps: ', player.allTimestamps);

    // stream data
    console.log('array of blobs: ', player.recordedData);
    // or construct a single blob:
    // var blob = new Blob(blobs, {
    //     type: 'video/webm'
    // });
});

How do I construct a single blob?

from videojs-record.

thijstriemstra avatar thijstriemstra commented on May 22, 2024

How do I construct a single blob?

it says it right there

var blob = new Blob(blobs, {
     type: 'video/webm'
 });

from videojs-record.

code-wizard avatar code-wizard commented on May 22, 2024

How about the timeslice issue I raised?
I did the following
var binaryData = player.recordedData[player.recordedData.length - 1];
The first blob is playable but the subsequent blobs are not playable. How do I resolve this?

from videojs-record.

thijstriemstra avatar thijstriemstra commented on May 22, 2024

How about the timeslice issue I raised?

you should open a new ticket and not use an existing ticket, thanks.

from videojs-record.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.