Adjust path to audioSample.mp3

Closes #7207
This commit is contained in:
Anton Georgiev 2019-04-09 13:57:25 -04:00 committed by GitHub
parent 2a8860f120
commit d9dfc9b999
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,7 @@ const AudioTestContainer = props => <AudioTest {...props} />;
export default withTracker(() => ({ export default withTracker(() => ({
outputDeviceId: Service.outputDeviceId(), outputDeviceId: Service.outputDeviceId(),
handlePlayAudioSample: (deviceId) => { 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); if (deviceId && sound.setSinkId) sound.setSinkId(deviceId);
sound.play(); sound.play();
}, },