Home > Net >  How to play system sound in flutter web?
How to play system sound in flutter web?

Time:12-26

How to play system sound in flutter web without using any packages in all platform ? I've tried await SystemSound.play(SystemSoundType.alert); but no alert tone played.

CodePudding user response:

The web platform currently does not support playing sounds, so this call will yield no behavior on that platform.

source : https://api.flutter.dev/flutter/services/SystemSound/play.html

  • Related