client/post_view: Force inline playback for iOS

Fixes #295
This commit is contained in:
Shyam Sunder 2019-12-17 12:41:23 -05:00
parent 0a5279c2c1
commit 53ec25f4c4

View file

@ -17,6 +17,7 @@
class: 'resize-listener', class: 'resize-listener',
controls: true, controls: true,
loop: (ctx.post.flags || []).includes('loop'), loop: (ctx.post.flags || []).includes('loop'),
playsinline: true,
autoplay: ctx.autoplay, autoplay: ctx.autoplay,
}, },
ctx.makeElement('source', { ctx.makeElement('source', {