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

add Edge browser type && fix webAudio bug on Edge and Baidu browser #4910

Merged
merged 3 commits into from Jul 19, 2019

Conversation

@PPpro
Copy link
Contributor

@PPpro PPpro commented Jul 18, 2019

Re: cocos-creator/2d-tasks#128

changeLog:

  • 修复 Edge 和百度浏览器上不能播放音频的问题
  • 增加 Edge 浏览器类型的判断

Edge 的 userAgent 信息比较奇葩
BF660C45FBA205BCD97FA44B6E05B0A5

@PPpro PPpro changed the title add Edge browser type && fix webAudio bug on Edge browser add Edge browser type && fix webAudio bug on Edge and Baidu browser Jul 18, 2019
WebAudioElement.TIME_CONSTANT = 0.01;
}
else {
WebAudioElement.TIME_CONSTANT = 0;
Copy link
Member

@jareguo jareguo Jul 18, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个变量作为一个局部常量就行了吧?

Copy link
Contributor Author

@PPpro PPpro Jul 19, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

可以,我更新了

@jareguo jareguo merged commit b33b14f into cocos-creator:v2.1.3 Jul 19, 2019
1 check passed
jareguo added a commit that referenced this issue Jul 23, 2019
* commit '94e490299e0e5c860305ae3f0324a1bb5c222852':
  fixed api link error. (#4920)
  support alipay minigame (#4880)
  fixed api docs (#4918)
  add Edge browser type && fix webAudio bug on Edge and Baidu browser (#4910)
  remove warning when upgrading editBox compnent (#4916)
  refine code (#4900)
  fix scrollView bug for 2d-tasks/issues/1555 (#4894)

# Conflicts:
#	cocos2d/core/mesh/CCMesh.js
#	cocos2d/core/platform/CCSys.js
#	cocos2d/core/platform/CCView.js
#	cocos2d/videoplayer/video-player-impl.js
jareguo added a commit that referenced this issue Jul 23, 2019
* v2.2.0:
  fixed api link error. (#4920)
  support alipay minigame (#4880)
  fixed api docs (#4918)
  add Edge browser type && fix webAudio bug on Edge and Baidu browser (#4910)
  remove warning when upgrading editBox compnent (#4916)
  move platform related code (#4913)
  fix warn after subContextView modules are excluded (#4737)
  refine code (#4900)
  fix scrollView bug for 2d-tasks/issues/1555 (#4894)

# Conflicts:
#	cocos2d/core/mesh/CCMesh.js
#	cocos2d/core/platform/CCSys.js
#	cocos2d/core/utils/profiler/CCProfiler.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants