thyagoluciano / flutter_radio

Radio station streaming example with ExoPlayer and Flutter.
GNU General Public License v3.0
86 stars 41 forks source link

#Flutter: MissingPluginException (MissingPluginException(No implementation found for method setVolume on channel flutter_radio)) #37

Open MindtrexTechnologies opened 4 years ago

MindtrexTechnologies commented 4 years ago

I am trying to set volume using flutter_radio plugin but getting below error.

Exception has occurred. MissingPluginException (MissingPluginException(No implementation found for method setVolume on channel flutter_radio))

Code snippet is below:

flutter plugin : flutter_radio: ^0.1.7 import 'package:flutter_radio/flutter_radio.dart';

FlatButton( child: Icon(Icons.stop), onPressed: () => FlutterRadio.stop(), ), FlatButton( child: Icon(Icons.volume_off), onPressed: () => FlutterRadio.setVolume(0.0), ), FlatButton( child: Icon(Icons.volume_up), onPressed: () => FlutterRadio.setVolume(0.7), )

gersonalvaradop commented 4 years ago

I am trying to set volume using flutter_radio plugin but getting below error.

Exception has occurred. MissingPluginException (MissingPluginException(No implementation found for method setVolume on channel flutter_radio))

Code snippet is below:

flutter plugin : flutter_radio: ^0.1.7 import 'package:flutter_radio/flutter_radio.dart';

FlatButton( child: Icon(Icons.stop), onPressed: () => FlutterRadio.stop(), ), FlatButton( child: Icon(Icons.volume_off), onPressed: () => FlutterRadio.setVolume(0.0), ), FlatButton( child: Icon(Icons.volume_up), onPressed: () => FlutterRadio.setVolume(0.7), )

it was solved?

erwinsetiawan commented 4 years ago

Please fix this

ajomuch92 commented 3 years ago

I have created a PR to fix this on Android. Here is it https://github.com/thyagoluciano/flutter_radio/pull/53/commits/46aedc8e6f23756eaa0ed94509c4f8e9581f37c7