parent
2a8860f120
commit
d9dfc9b999
@ -8,7 +8,7 @@ const AudioTestContainer = props => <AudioTest {...props} />;
|
||||
export default withTracker(() => ({
|
||||
outputDeviceId: Service.outputDeviceId(),
|
||||
handlePlayAudioSample: (deviceId) => {
|
||||
const sound = new Audio((Meteor.settings.public.app.cdn + Meteor.settings.public.app.basename) + 'resources/sounds/audioSample.mp3');
|
||||
const sound = new Audio((Meteor.settings.public.app.cdn + Meteor.settings.public.app.basename) + '/resources/sounds/audioSample.mp3');
|
||||
if (deviceId && sound.setSinkId) sound.setSinkId(deviceId);
|
||||
sound.play();
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user