Fix video overlays

This commit is contained in:
Jerko Steiner 2016-03-31 18:39:04 -04:00
parent c166006100
commit 45158bd7d8
2 changed files with 10 additions and 5 deletions

View File

@ -27,14 +27,19 @@ activeStore.addListener(render);
render(); render();
getUserMedia({ video: true, audio: false })
.then(stream => {
dispatcher.dispatch({
type: 'add-stream',
userId: '_me_',
stream
});
});
socket.once('connect', () => { socket.once('connect', () => {
debug('socket connected'); debug('socket connected');
getUserMedia({ video: true, audio: true }) getUserMedia({ video: true, audio: true })
.then(stream => { .then(stream => {
dispatcher.dispatch('add-stream', {
userId: '_me_',
stream
});
debug('forwarding stream to handshake'); debug('forwarding stream to handshake');
handshake.init(socket, 'test', stream); handshake.init(socket, 'test', stream);
}) })

View File

@ -62,7 +62,7 @@ body {
right: 0; right: 0;
top: 0; top: 0;
bottom: 0; bottom: 0;
z-index: 1; z-index: -1;
video { video {
pointer: inherit; pointer: inherit;