parent
2a8860f120
commit
d9dfc9b999
@ -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();
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user