Commit 3b0f97be authored by marioromera's avatar marioromera
Browse files

add swf for soundmanager

parent 64361063
......@@ -20,7 +20,6 @@ const draw = new Drawing('#drawing-svg');
import yourturnfile from '../assets/yourturn.ogg';
import { soundManager } from 'soundmanager2';
console.log('soundManager', soundManager);
var yourTurnAudio = new Audio(yourturnfile);
......@@ -31,10 +30,11 @@ function playSound(e) {
e.preventDefault();
soundManager.setup({
url: '/swf/',
onready: function () {
console.log('soundready');
var mySound = soundManager.createSound({
url: './yourturn.ogg',
url: './yourturn.mp4',
});
mySound.play();
},
......
......@@ -16,7 +16,10 @@ const plugins = [
filename: 'index.html',
favicon: './public/favicon.ico',
}),
new CopyPlugin([{ from: 'public/yourturn.ogg' }]),
new CopyPlugin([
{ from: 'public/yourturn.ogg' },
{ from: 'public/swf', to: 'swf' },
]),
];
module.exports = {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment