![]() Free platform decoders and buffers for each player. Working with multiple players # // Set up two players with different audio filesįinal player1 = AudioPlayer() await tUrl(.) įinal player2 = AudioPlayer() await tUrl(.) Īwait ay() // Wait for player2 to finish ay() // Play without waiting for completionĪwait ay() // Play while waiting for completionĪwait player.pause() // Pause but remain ready to playĪwait ek(Duration(second: 10)) // Jump to the 10 second positionĪwait tSpeed(2.0) // Twice as fastĪwait tVolume(0.5) // Half as loudĪwait player.stop() // Stop and free resources '') // Schemes: (https: | file: | asset: ) Quick synopsis # import 'package:just_audio/just_audio.dart' įinal player = AudioPlayer() // Create a playerįinal duration = await tUrl( // Load a URL Platform Support - API Documentation - Tutorials - Background Audio - Community Support ![]() Just_audio is a feature-rich audio player for Android, iOS, macOS, web, Linux and Windows. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |