diff --git a/app/hosting/index.js b/app/hosting/index.js index 2ae2057..6104395 100644 --- a/app/hosting/index.js +++ b/app/hosting/index.js @@ -22,7 +22,7 @@ var Hosting = { }) }, }, m('div.container', [ - m('video', { + !vnode.state.isMobile ? m('video', { oncreate: function(subnode) { vnode.state.domVideo = subnode.dom Helper.checkCreated(vnode) @@ -41,7 +41,12 @@ var Hosting = { type: 'video/webm', }), ] - ), + ) : m('div', { + oncreate: function(subnode) { + vnode.state.domVideo = subnode.dom + Helper.checkCreated(vnode) + }, + }), m('div', m('img', { oncreate: function(subnode) { diff --git a/app/programming/index.js b/app/programming/index.js index 8ea5068..10e123c 100644 --- a/app/programming/index.js +++ b/app/programming/index.js @@ -22,7 +22,7 @@ var Programming = { }) }, }, m('div.container', [ - m('video', { + !vnode.state.isMobile ? m('video', { oncreate: function(subnode) { vnode.state.domVideo = subnode.dom Helper.checkCreated(vnode) @@ -41,7 +41,12 @@ var Programming = { type: 'video/webm', }), ] - ), + ) : m('div', { + oncreate: function(subnode) { + vnode.state.domVideo = subnode.dom + Helper.checkCreated(vnode) + }, + }), m('div', m('img', { oncreate: function(subnode) { diff --git a/app/streaming/index.js b/app/streaming/index.js index c7df9ea..56bcabd 100644 --- a/app/streaming/index.js +++ b/app/streaming/index.js @@ -22,7 +22,7 @@ var Streaming = { }) }, }, m('div.container', [ - m('video', { + !vnode.state.isMobile ? m('video', { oncreate: function(subnode) { vnode.state.domVideo = subnode.dom Helper.checkCreated(vnode) @@ -41,7 +41,12 @@ var Streaming = { type: 'video/webm', }), ] - ), + ) : m('div', { + oncreate: function(subnode) { + vnode.state.domVideo = subnode.dom + Helper.checkCreated(vnode) + }, + }), m('div', m('img', { oncreate: function(subnode) { diff --git a/public/index.html b/public/index.html index d57bcc0..9d3f586 100644 --- a/public/index.html +++ b/public/index.html @@ -4,7 +4,7 @@