experimental flash support through ruffle
This commit is contained in:
parent
8b96ea9377
commit
d695dcaff9
9 changed files with 43 additions and 0 deletions
16
src/components/flash/flash.js
Normal file
16
src/components/flash/flash.js
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue