Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix probem with 720p video full screen display on chrome browser #318

Merged
merged 1 commit into from
Jul 19, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions client/stylesheets/base.less
Original file line number Diff line number Diff line change
Expand Up @@ -3082,6 +3082,14 @@ a.github-fork {
}
}

#fullscreendiv:-webkit-full-screen {
position: fixed;
width: 100%;
height: 100%;
top: 0;
background: none;
}

@media all and(max-width: 1100px) {
#rocket-chat {
.flex-opened {
Expand Down
2 changes: 1 addition & 1 deletion client/views/app/room.html
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ <h3>{{username}}</h3>

{{#if selfVideoUrl}}
{{#if rtcLayout3}}
<div id='fullscreendiv' style="width: 800px; height: 350px">
<div id='fullscreendiv' style="width: 100%">
<video id='videoremote' class="video-remote" src="{{remoteVideoUrl}}" style="width: 100%; align-items: center; margin-bottom: 10px; background-color: #000; transition: width 2s, height 2s, top 2s, left 2s, transform 2s;" autoplay></video>
<video id='videoself' class="video-self" src="{{selfVideoUrl}}" style="width: 250px; position: absolute; top: 21px; right: 31px; border: 1px solid #FFF; background-color: #000; transition: width 2s, height 2s, top 2s, left 2s, transform 2s;" autoplay muted></video>
</div>
Expand Down
2 changes: 1 addition & 1 deletion packages/rocketchat-webrtc/webrtc.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ webrtc.start = function (isCaller, fromUsername) {

var getUserMedia = function() {
// get the local stream, show it in the local video element and send it
navigator.getUserMedia({ "audio": true, "video": true }, function (stream) {
navigator.getUserMedia({ "audio": true, "video": {mandatory: {minWidth:1280, minHeight:720}} }, function (stream) {
webrtc.onSelfUrl(URL.createObjectURL(stream));

webrtc.pc.addStream(stream);
Expand Down