Preview Paper-edit video
Last updated
Last updated
BBC Video context previously video compositor.
This is the sequence taken in by tge BBC video compositor to be able to render a video preview in canvas. It takes two tracks, but for our porpuses we can just pass one track. Needs adding type “video”, change startTime to start. And add duration instead of endTime.
Various options see jsfiddle example. Overall popcornjs altho deprecated, was the smoothest one.
Downside is that it creates canvas(?) and need to re-implement “video” controls for preview as well as progress bar etc.. becomes a very involved component.
It uses Canvas?
Webm example for nwjs (nwjs does not support mp4)
Issue: flicker white in between videos
Issue sometimes it says src undefined. I think I needs some if counter < videosequence.kength
EDL Json / playlist:
Media source:
However this is now deprecated in favour of BBC video context.
Some more research has been done
To try and add as script tag while figure out how to include in browserify. Add it in nwjs folder and reference from there. With just /
Data structures in view components.
JSfiddle: Not working, coz no popcorn js CDN but code is correct.
Documentation
JSfidde: Description: a plain vanilla javascript that makes the most of the HTML5 Video element to play a sequence of video segments continuosly, where src, inp point and out point are specified. Notes: Needs refactoring to remove side effects from methods.
JSFiddle: HTML5 Video Play sequence of video segments using format
More on media fragments:
Improved version : using setTimeout
Version with namespace
→ Version with pause state object to resume from paused point within clip segment Relies on adding vars to window object.
HML5 video API Option: client side ffmpeg video concat
It’s in angular tho