limistah / react-video-trimmer

Trim videos using reactjs https://limistah.github.io/react-video-trimmer
https://limistah.github.io/react-video-trimmer
26 stars 12 forks source link

How can we implement this on a preloaded video ? #7

Open Ishaan28malik opened 3 years ago

Ishaan28malik commented 3 years ago

I was calling an already defined video in my web app using the react-video Player and then I called the src with the video object inside the react-video-trimmer div

Selection_043

Is there a way to implement such usecase using react-video-trimmer ? @limistah

hellno commented 3 years ago

Hi, I'm interested this as well. Any hints on how to contribute this feature to the react-video-trimmer project? @limistah

limistah commented 3 years ago

@Ishaan28malik, @hellno,

can you provide an example of the situation?

hellno commented 3 years ago

in my use-case I want to make this work:

import ReactVideoTrimmer from "react-video-trimmer";
const MP4_VIDEO_URL = 'https://file-examples-com.github.io/uploads/2017/04/file_example_MP4_480_1_5MG.mp4';

return <div>
  <ReactVideoTrimmer src={MP4_VIDEO_URL)} />
</div>;

Where the video files are hosted by me and made available to my users. I want to allow them to trim the video and download the trimmed clip.

What do you think about this? Can you estimate how long it would take to implement it in the existing project? Happy to help in any way :)

limistah commented 3 years ago

The whole project supports a local file upload and manipulation.

Implementing hosted files would mean: Downloading the file, converting to a Blob and passing it down to the actual function that does the trimming and manipulation.

A pretty interesting stuff.

How can we make this happen, there is crisis in my country and I am unable to have a dedicated concentration at the moment, I can't tell how long this might take. We are trying to put an end to police brutality, and they are responding to our protests by killings and more brutality, as a response, angry mobs are out burning down properties :)

I would advise you work on the feature at your end and help with the solution you might have succeeded with.

I am sorry, I can't do more at the moment.

hellno commented 3 years ago

wow, I was totally unaware that this is happening in Nigeria right now. Just saw the news and will inform myself more thoroughly. Sorry for that!

thanks for replying so quickly to my random programing problem that is 100% meaningless in your situation. all the best to you and I hope the crisis can be resolved in a peaceful way soon