Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Element Web
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
Element (formerly New Vector)
Element Web
Commits
34ad48a5
Commit
34ad48a5
authored
Oct 20, 2015
by
David Baker
Browse files
Options
Downloads
Patches
Plain Diff
Wire up fullscreen button. Requires react-sdk with sync flag to dispatcher.
parent
078134d4
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/skins/vector/views/molecules/RoomHeader.js
+5
-0
5 additions, 0 deletions
src/skins/vector/views/molecules/RoomHeader.js
src/skins/vector/views/molecules/voip/VideoView.js
+16
-1
16 additions, 1 deletion
src/skins/vector/views/molecules/voip/VideoView.js
with
21 additions
and
1 deletion
src/skins/vector/views/molecules/RoomHeader.js
+
5
−
0
View file @
34ad48a5
...
...
@@ -18,6 +18,7 @@ limitations under the License.
var
React
=
require
(
'
react
'
);
var
sdk
=
require
(
'
matrix-react-sdk
'
)
var
dis
=
require
(
'
matrix-react-sdk/lib/dispatcher
'
)
var
CallHandler
=
require
(
'
matrix-react-sdk/lib/CallHandler
'
);
var
MatrixClientPeg
=
require
(
'
matrix-react-sdk/lib/MatrixClientPeg
'
);
...
...
@@ -37,6 +38,10 @@ module.exports = React.createClass({
return
this
.
refs
.
name_edit
.
getDOMNode
().
value
;
},
onFullscreenClick
:
function
()
{
dis
.
dispatch
({
action
:
'
video_fullscreen
'
},
true
);
},
render
:
function
()
{
var
EditableText
=
sdk
.
getComponent
(
"
atoms.EditableText
"
);
var
RoomAvatar
=
sdk
.
getComponent
(
'
atoms.RoomAvatar
'
);
...
...
This diff is collapsed.
Click to expand it.
src/skins/vector/views/molecules/voip/VideoView.js
+
16
−
1
View file @
34ad48a5
...
...
@@ -19,12 +19,17 @@ limitations under the License.
var
React
=
require
(
'
react
'
);
var
sdk
=
require
(
'
matrix-react-sdk
'
)
var
dis
=
require
(
'
matrix-react-sdk/lib/dispatcher
'
)
var
VideoViewController
=
require
(
'
matrix-react-sdk/lib/controllers/molecules/voip/VideoView
'
)
module
.
exports
=
React
.
createClass
({
displayName
:
'
VideoView
'
,
mixins
:
[
VideoViewController
],
componentWillMount
:
function
()
{
dis
.
register
(
this
.
onAction
);
},
getRemoteVideoElement
:
function
()
{
return
this
.
refs
.
remote
.
getDOMNode
();
},
...
...
@@ -33,10 +38,20 @@ module.exports = React.createClass({
return
this
.
refs
.
local
.
getDOMNode
();
},
onAction
:
function
(
payload
)
{
switch
(
payload
.
action
)
{
case
'
video_fullscreen
'
:
var
element
=
this
.
refs
.
container
.
getDOMNode
();
var
requestMethod
=
element
.
requestFullScreen
||
element
.
webkitRequestFullScreen
||
element
.
mozRequestFullScreen
||
element
.
msRequestFullscreen
;
requestMethod
.
call
(
element
);
break
;
}
},
render
:
function
()
{
var
VideoFeed
=
sdk
.
getComponent
(
'
atoms.voip.VideoFeed
'
);
return
(
<
div
className
=
"
mx_VideoView
"
>
<
div
className
=
"
mx_VideoView
"
ref
=
"
container
"
>
<
div
className
=
"
mx_VideoView_remoteVideoFeed
"
>
<
VideoFeed
ref
=
"
remote
"
/>
<
/div
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment