@financial-times/n-3play-media
v2.0.4
Published
A client library for http://3playmedia.com, a transcription service.
Downloads
103
Maintainers
Keywords
Readme
A client library for http://3playmedia.com, a transcription service.
Usage
npm install
export THREEPLAYMEDIA_API_SECRET=...
export THREEPLAYMEDIA_API_KEY=...
node src/main
Warning
Using this API costs the FT.com money - please understand the consequences of using the code.
const source = 'https://next-video.ft.com/s3/5b8951dc-94f5-4c5a-9579-3c65ee483666/480x270.mp4';
const config = {
uuid: '5b8951dc-94f5-4c5a-9579-3c65ee483666',
callback_url: 'http://example.com/webhooks/..'
turnaround_level: 'rush'
}
new ThreePlayMedia().create_transcription(source, config)
.then(data => console.log(data))
.catch(err => console.error(err));