Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ios
WebView-Test
Commits
a3d6d299
Commit
a3d6d299
authored
3 years ago
by
pyfer
Browse files
Options
Download
Email Patches
Plain Diff
LIVE-48735:【直播】iOS14.3+ 系统 WKWebView修改UserAgent后,无法支持连麦
parent
00b406f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
README.md
README.md
+1
-1
No files found.
README.md
View file @
a3d6d299
...
...
@@ -108,7 +108,7 @@ iPad打开会出现白屏的情况,解决方案https://developer.apple.com/for
### 集成问题
#### 1.
WKWebview获取`navigator.userAgent`后导致HTML的`navigator.mediaDevices && navigator.mediaDevices.getUserMedia`属性为false
#### 1.
iOS14.3+系统在WKWebview获取userAgent后,无法支持连麦
在WKWebView加载URL之前获取
`navigator.userAgent`
时,在HTML中获取到navigator的mediaDevices属性为false。解决方案可以通过创建临时的WKWebView来获取userAgent,然后再设置给主WKWebView就可以解决。
...
...
This diff is collapsed.
Click to expand it.
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