audioplayer icon indicating copy to clipboard operation
audioplayer copied to clipboard

New Warning Produced by Android Runtime

Open ThinkDigitalSoftware opened this issue 6 years ago • 8 comments

W/MediaPlayer(29189): Use of stream types is deprecated for operations other than volume control W/MediaPlayer(29189): See the documentation of setAudioStreamType() for what to use instead with android.media.AudioAttributes to qualify your playback use case

ThinkDigitalSoftware avatar Jun 29 '18 05:06 ThinkDigitalSoftware

I also noticed those warnings, you should probably propose a pull request since you seem to understand where they are coming from.

Apparently you are also trying to build an audio player and you are relying on this library the same way I do.

What I'm doing is working on patches and fixes and try to propose PR here. Since the maintainers of this project are a little bit slow to merge you'll have to fork this repo and add those new features on your forked version till the maintainers come back.

eddywm avatar Jun 29 '18 08:06 eddywm

I'm not actually sure where it's coming from, I just saw the errors pop up :/

On Fri, Jun 29, 2018, 1:18 AM Eddy WM [email protected] wrote:

I also noticed those warnings, you should probably propose a pull request since you seem to understand where it’s coming from.

Apparently you are also trying to build an audio player and you are relying on this library the same way I do.

What I'm doing is working on patches and fixes and try to propose PR here. Since the maintainers of this project are a little bit slow to merge you'll have to fork this repo and add those new features on your forked version till the maintainers come back.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rxlabz/audioplayer/issues/48#issuecomment-401283922, or mute the thread https://github.com/notifications/unsubscribe-auth/AV-HfV1A5ThFIz81piaFWKt9bl7va6m5ks5uBeLMgaJpZM4U8ePO .

ThinkDigitalSoftware avatar Jun 29 '18 14:06 ThinkDigitalSoftware

I fixed the errors and submitted a pull request. However, if I want to use these changes officially, would I have to create a forked pub package as well?

ThinkDigitalSoftware avatar Jul 14 '18 04:07 ThinkDigitalSoftware

@ThinkDigitalRepair You'll have to fork the repository and reference your version of this library in the yaml deps file waiting for the maintainers of this repo to merge your PR. That's exactly what I did, waiting for my pull request #43 to get merged.

There's a way to reference non published library in Flutter, so you can link directly a github repo in the .yaml dependencies file. https://flutter.io/using-packages/#adding-a-package-dependency-to-an-app

Look at Dependencies on unpublished packages section

eddywm avatar Jul 15 '18 21:07 eddywm

Yeah. But that takes it from pub.dartlang.org and not github, right? I submitted a github pull request, but I can't use the updated code unless I manually modify the package files in my editor, which is hack at best

On Sun, Jul 15, 2018, 2:43 PM Eddy WM [email protected] wrote:

@ThinkDigitalRepair https://github.com/ThinkDigitalRepair You'll have to fork the repository and refrence your version of this library in the yaml deps file waiting for the maintainers of this repo to merge your PR.

That's exactly what I did, waiting for my pull request #43 https://github.com/rxlabz/audioplayer/pull/43 to get merged.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/rxlabz/audioplayer/issues/48#issuecomment-405120620, or mute the thread https://github.com/notifications/unsubscribe-auth/AV-HffOpjuCJB4e3vrXwnXMJbN84j6F-ks5uG7dtgaJpZM4U8ePO .

ThinkDigitalSoftware avatar Jul 15 '18 21:07 ThinkDigitalSoftware

Is there any update on this? I also get this warnings when using the plugin in my flutter app

W/MediaPlayer(10941): Use of stream types is deprecated for operations other than volume control
W/MediaPlayer(10941): See the documentation of setAudioStreamType() for what to use instead with android.media.AudioAttributes to qualify your playback use case

davidanaya avatar Jan 11 '19 17:01 davidanaya

I have also this warning. I just run flutter in android emulators.

YDJSZY avatar Mar 19 '19 07:03 YDJSZY

Is steaming radio fixed for this control or should I find another package?

softcoder avatar Jul 20 '19 04:07 softcoder