\content bytes
This commit is contained in:
@@ -27,14 +27,14 @@ class ContentBytesController extends GetxController {
|
||||
final buttonNotifier = ValueNotifier<ButtonState>(ButtonState.paused);
|
||||
|
||||
late AudioPlayer _audioPlayer;
|
||||
ContentBytesController() {
|
||||
init(0);
|
||||
}
|
||||
|
||||
void getAudio() => _audioPlayer;
|
||||
|
||||
void init(index) async {
|
||||
_audioPlayer = AudioPlayer();
|
||||
try {
|
||||
await _audioPlayer.setUrl(contentBytesModel.data!.audio![index].file ??
|
||||
await _audioPlayer.setUrl(
|
||||
//contentBytesModel.data!.audio![index].file ??
|
||||
'https://ghantalele.com/uploads/files/data-78/38825/Besharam%20Rang_192(Ghantalele.com).mp3');
|
||||
// await _audioPlayer.setAsset(url);
|
||||
} on PlayerException catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user