experimental flash support through ruffle

This commit is contained in:
Henry Jameson 2021-04-09 19:09:22 +03:00
parent 8b96ea9377
commit d695dcaff9
9 changed files with 43 additions and 0 deletions

View file

@ -0,0 +1,16 @@
const Flash = {
props: [
'src'
],
created: function () {
this.$nextTick(function () {
const ruffle = window.RufflePlayer.newest()
const player = ruffle.createPlayer()
const container = this.$refs.cunt
container.appendChild(player)
player.load(this.src)
})
}
}
export default Flash