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
| <!DOCTYPE html> | |
| <html> | |
| <body> | |
| <video style="width: 640px; height: 360px; border: solid 1px;"></video> | |
| <script> | |
| var queue = []; | |
| // Check that browser has support for media codec | |
| var mimeCodec = 'video/mp4; codecs="avc1.4D401F"'; | |
| console.log(MediaSource.isTypeSupported(mimeCodec)); |
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 request = require('request'); | |
| const DATA_API = 'https://data.example.com/api'; | |
| const DATA_API_KEY = process.env.API_KEY; | |
| exports.search = function(event, context, callback) { | |
| const targets = [ 'ID1', 'ID2', 'ID3' ]; | |
| callback(null, targets); | |
| }; |
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
| var aws = require('aws-sdk'); | |
| var elastictranscoder = new aws.ElasticTranscoder(); | |
| function basename(path) { | |
| return path.split('/').reverse()[0].split('.')[0]; | |
| } | |
| exports.handler = (event, context) => { | |
| console.log('Received event:', JSON.stringify(event, null, 2)); | |
| var key = event.Records[0].s3.object.key; |
NewerOlder