Created
October 12, 2021 17:40
-
-
Save legraphista/c7940b84eddf42a4652faa6ca1b9713d to your computer and use it in GitHub Desktop.
simple beamcoder usage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const bc = require('beamcoder'); | |
bc.demuxer('rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov').then(dm => console.log(dm.duration)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node test.js; # will output 634625000 | |
electron test.js; # will output UnhandledPromiseRejectionWarning: Error: In file ../src/demux.cc on line 76, found error: Problem opening input format: Protocol not found |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment