We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85305df commit 2ab45fdCopy full SHA for 2ab45fd
src/document.js
@@ -1,6 +1,7 @@
1
import {Canvas} from './canvas'
2
import Image from './Image'
3
import {Element} from './element'
4
+import Video from './video';
5
6
const stack = {}
7
@@ -38,6 +39,10 @@ export default {
38
39
return new Image()
40
}
41
42
+ case 'video': {
43
+ return new Video();
44
+ }
45
+
46
default: {
47
return new Element()
48
src/video.js
@@ -0,0 +1,8 @@
+export default function() {
+ const video = wx.createVideo({width: 0, height: 0, controls: false})
+ video.canPlayType = () => {
+ return true;
+ return video
8
0 commit comments