Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
E
ESDP_froot.kz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
10
Issues
10
List
Board
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ESDP_froot.kz
ESDP_froot.kz
Commits
b3aaa7c0
Commit
b3aaa7c0
authored
May 19, 2021
by
Pavel Mishakov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Продолжаю борьбу с getDisplayMedia
parent
93bfa0ca
Pipeline
#338
passed with stages
in 2 minutes and 34 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
24 deletions
+24
-24
BigBrother.js
front/src/components/BigBrother/BigBrother.js
+24
-24
No files found.
front/src/components/BigBrother/BigBrother.js
View file @
b3aaa7c0
...
@@ -24,35 +24,35 @@ const BigBrother = () => {
...
@@ -24,35 +24,35 @@ const BigBrother = () => {
const
user
=
useSelector
(
state
=>
state
.
users
.
user
)
const
user
=
useSelector
(
state
=>
state
.
users
.
user
)
function
getDisplayMedia
(
options
)
{
function
getDisplayMedia
(
options
)
{
if
(
navigator
.
mediaDevices
&&
navigator
.
mediaDevices
.
getDisplayMedia
)
{
//
if (navigator.mediaDevices && navigator.mediaDevices.getDisplayMedia) {
return
navigator
.
mediaDevices
.
getDisplayMedia
(
options
)
return
navigator
.
mediaDevices
.
getDisplayMedia
(
options
)
}
if
(
navigator
.
getDisplayMedia
)
{
return
navigator
.
getDisplayMedia
(
options
)
}
if
(
navigator
.
webkitGetDisplayMedia
)
{
return
navigator
.
webkitGetDisplayMedia
(
options
)
}
if
(
navigator
.
mozGetDisplayMedia
)
{
return
navigator
.
mozGetDisplayMedia
(
options
)
}
throw
new
Error
(
'getDisplayMedia is not defined'
)
}
function
getUserMedia
(
options
)
{
// if (navigator.mediaDevices && navigator.mediaDevices.getUserMedia) {
return
navigator
.
mediaDevices
.
getUserMedia
(
options
)
// }
// }
// if (navigator.get
User
Media) {
// if (navigator.get
Display
Media) {
// return navigator.get
User
Media(options)
// return navigator.get
Display
Media(options)
// }
// }
// if (navigator.webkitGet
User
Media) {
// if (navigator.webkitGet
Display
Media) {
// return navigator.webkitGet
User
Media(options)
// return navigator.webkitGet
Display
Media(options)
// }
// }
// if (navigator.mozGet
User
Media) {
// if (navigator.mozGet
Display
Media) {
// return navigator.mozGet
User
Media(options)
// return navigator.mozGet
Display
Media(options)
// }
// }
// throw new Error('getUserMedia is not defined')
// throw new Error('getDisplayMedia is not defined')
}
function
getUserMedia
(
options
)
{
if
(
navigator
.
mediaDevices
&&
navigator
.
mediaDevices
.
getUserMedia
)
{
return
navigator
.
mediaDevices
.
getUserMedia
(
options
)
}
if
(
navigator
.
getUserMedia
)
{
return
navigator
.
getUserMedia
(
options
)
}
if
(
navigator
.
webkitGetUserMedia
)
{
return
navigator
.
webkitGetUserMedia
(
options
)
}
if
(
navigator
.
mozGetUserMedia
)
{
return
navigator
.
mozGetUserMedia
(
options
)
}
throw
new
Error
(
'getUserMedia is not defined'
)
}
}
async
function
takeScreenshotStream
()
{
async
function
takeScreenshotStream
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment