Permalink
Fetching contributors…
Cannot retrieve contributors at this time
93 lines (72 sloc) 19.3 KB
<style>
html, body, video, canvas {
margin: 0!important;
padding: 0!important;
}
</style>
<title>Show logo+advertisement on the recorded video | RecordRTC</title>
<h1>Show logo+advertisement on the recorded video | RecordRTC</h1>
<video id="video-preview" controls autoplay></video>
<img id="logo-image" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAOvwAADr8BOAVTJAAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xNkRpr/UAABhFSURBVHhe7Z0HsB1FdoZBQgIESCyInASsARFksSuyyEsWIDBgVKwJRVpAsDKmTLbXpYKVy8TCBKMCZIslrETcIhvWLC6goIDF5LALhQgm5xza/zeaue7b98xN03PfvKd3qj7E69szPR2m+/Tp0z0LOecGBJL1xH7iFHGteFR8KvixW7j+CcH9zhDcfz0r/f6KGdgfkIwRRwgq5y3hV1zZkB7p/kL06wZhBlYVyXZipnhF+BXS19AgZotdxSLWs1cVM7BKSH4spouqVXoe88SvRb/oGczAvkayiPi5eED4hdsN2Tj+e3GPuCqFSvpV+m8Wxu/EI35R/QEeEgwTi1n5rAJmYF9BQYlpopu3nQq7Q5wvKPSfiVWtdNpFsmJ6H+7Hfbl/Nw2DIYJ8Va4hmIG9RrK0OEl0osxlFY7Wv7noydhLOml6pNtpgyB/zCaWtu7dF5iBvUJCYfJmfCj8gsrjS4H2XRlli+dIn4fn4vnCZ7Ygv+S7z/NgBvYCyUTxlPALJo9sLG3rzZGMFfuLI8VF4rcp6BR5byzh/J7F5Tqu5z5jrXRCJEsKpqbt6i7kf6J1r15hBpaJZLRA4fILwuJbQbxcbVoyVGwkDhAodHeJx8Wz4s/iNfGO+CCFSv5OhGkB4fyexeU6ruc+3I/7cn/SIT3SHWo9F0iYvfD85CNMK4Qp5IrWfcrGDCwLCZp9q+6ebpS5/o9z7jFSbCZ+KW4W/yX+K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dFId+CCsDzkw/yQ75YLfWNOyjQrcoJe0uhqV4zzMBYSDiOPE+TBaY4Nfey9BqcS0aLieIEgQdMf5st8Lx/EGj35IP81Jw40nyytp83xQOGjK4tfO1iBsZEgqdQM+UQGN9qhiPv2uUE6wmshfP9Yr5gyjEo4fVVgOfi+XhOnpfnrrlse3miPJqN9cDCTle2/U4xA2MjQTm09qv50OLpDhu0XAkNYStxlGBtnJNLKezwHn0Bz8Hz8Fw8H89pVTyzJPLXSsllyT26speHGVgWErq9Vj4CGI9mitpexOAeo8RmggWpWwRDBIdYYk3DYza8X0y4P+kwjSNd0uc5sNjVHDWD52WvHlPgVg6zDJUdOXPEwAwsEwlvgnUcTQhvCr1G7UCjEAmrjShX+CLyBay7BI6TzJfpRjG2oF3T6IBCztvVTDiu7VlcruN67sP9uO/dgnRIb5yoKXQhEiqe52/1xgOzprbduGJiBvYCCaZOHB39gsiDLetModrqGiXY1Nm2hvZNt8u4DIy9eUop4fyexeU6ruc+Y610QiQMdZzM0WqMzyD/bXnvloUZ2Csk2Ax4o1p1jxnEY1qEglXa1KgTeI70eXiuTvIxXbT02y8bM7DXSBgWMIG20g98eGM5BJFdSYzBPWkQpJOmR7qkn9ejWJA/9IGo5twimIF9hQTDCD1CM6tYHlmDoIAZLhhiCo2rEhom9+F+3LfTCs+g4slXz7T7djED+xoJQwPatfU1k06hwrgPp51zlg6KGdDjUCn8m4XxO/GI301Fh6A80lNUruIzzMAqIRkv/kVYR9hVEax79BY9MeQUxQysKhK6Y2wEea7pfQWVztS2Msppu5iB/QHJGMGUC+27mU29DEiPdNENcu0U/QEzsD9CRQg8aRhzqRx8D4qO45n+wP2w73P/fl3hIWbgQEJCT8EXMoF1d1YogQpFCaTBZGE4amRx+8Qy11vcQv8HgbjjKKlCbU0AAAAASUVORK5CYII=" style="display: none;">
<img id="wait-image" src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxMSEhUTExIWFRUVFxgaGBcYFxgVFR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yxk97agHoO7BWvj8ixhDYweJIJ0NKqeP+GR6fbwl3RzHWIweK9NGq7ne7Dcyg2AG0rKySPLWW7nxbkd2D6Fy0doWWOEjGU47w4fe1a+0uimPNzg8RztQffx7MnXu0Uv6IZgXH5jiLTB6p3Eaaaae1BsCdoWWcMdSPrPdwCN2g5YdMbT/+3/iqAqdB8xsW4GuNNafHXWJt3r6HdCcxPaOCrkmxHVbo1HcOXH1oLzO0XK5jyynbucL8tEqbRcsH9tZpyf8A+Koh3QXMRcYCtM8KZDotxNo7ot6AlToJmVowFY66sM906etBbHS7ptgsXhauDw1brq+Jb1VJrWkBz3ndaC94DQJ4krwGT7Js1Fai+ph2ta2qxzprUyYDgTYOOgBFln0F6G5izMMK+rha1OnTqsc4uBDQARMme6VsghoiIqgiIgIiICIiAiIgIiICIiAiIgIiICIiAiIgIiICIiAiIgIiICIiAiIgiFKIgIiICIiAiIg//9k=" style="display: none;">
<script src="https://cdn.webrtc-experiment.com/RecordRTC.js"></script>
<script src="https://webrtc.github.io/adapter/adapter-latest.js"></script>
<script>
var videoPreview = document.getElementById('video-preview');
var logoImage = document.getElementById('logo-image');
var waitImage = document.getElementById('wait-image');
navigator.mediaDevices.getUserMedia({video: true, audio: true}).then(function(camera) {
var canvas = document.createElement('canvas');
var context = canvas.getContext('2d');
canvas.style = 'position: absolute; top: 0; left: 0; opacity: 0; margin-top: -9999999999; margin-left: -9999999999; top: -9999999999; left: -9999999999; z-index: -1;';
document.body.appendChild(canvas);
var video = document.createElement('video');
setSrcObject(camera, video);
video.play();
var canvasStream = canvas.captureStream(15);
var audioPlusCanvasStream = new MediaStream();
canvasStream.getVideoTracks().forEach(function(videoTrack) {
audioPlusCanvasStream.addTrack(videoTrack);
});
camera.getAudioTracks().forEach(function(audioTrack) {
audioPlusCanvasStream.addTrack(audioTrack);
});
var recorder = RecordRTC(audioPlusCanvasStream, {
type: 'video'
});
recorder.setRecordingDuration(10 * 1000).onRecordingStopped(function() {
var blob = recorder.getBlob();
recorder = null;
camera.stop();
videoPreview.src = URL.createObjectURL(blob);
videoPreview.play();
});
recorder.startRecording();
setSrcObject(canvasStream, videoPreview);
videoPreview.play();
var tries = 0;
(function looper() {
if(!recorder) return; // ignore/skip on stop-recording
tries += 100;
canvas.width = 320;
canvas.height = 240;
// show hello.png for one second
if(tries < 5000 || tries > 6000) {
context.drawImage(video, 0, 0, canvas.width, canvas.height);
// context.drawImage(logoImage, parseInt(canvas.width / 2) - parseInt(logoImage.width / 2), canvas.height - logoImage.height - 10);
// context.drawImage(logoImage, parseInt(canvas.width / 2) - parseInt(32 / 2), canvas.height - 32 - 10, 32, 32);
context.drawImage(logoImage, 10, 10, 32, 32);
}
else {
context.drawImage(waitImage, 0, 0, canvas.width, canvas.height);
}
// repeat (looper)
setTimeout(looper, 100);
})();
}).catch(function(error) {
alert('Unable to capture camera. Please check console logs.');
console.error(error);
});
</script>
<footer style="margin-top: 20px;"><small id="send-message"></small></footer>
<script src="https://cdn.webrtc-experiment.com/common.js"></script>