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

创建video对象wepy.createVideoContext('myVideo')是出错 #133

Closed
webdzq opened this issue May 11, 2017 · 1 comment
Closed

创建video对象wepy.createVideoContext('myVideo')是出错 #133

webdzq opened this issue May 11, 2017 · 1 comment

Comments

@webdzq
Copy link

webdzq commented May 11, 2017

在onReady函数中创建 wepy.createVideoContext是报错,求解决。参考官网demo中的video示例
onReady(res)

{
try {
this.videoContext = wepy.createVideoContext('myVideo')
} catch (e) {
console.log(e.message)
}
}

Gcaufy added a commit that referenced this issue May 11, 2017
@Gcaufy
Copy link
Collaborator

Gcaufy commented May 11, 2017

this.videoContext = wx.createVideoContext('myVideo')

先这样写就可以解决问题。

@Gcaufy Gcaufy closed this as completed May 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants