Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Audio not playing and Time incorrect #110

Closed
seventhsonmizo opened this issue Jan 7, 2020 · 35 comments
Closed

Audio not playing and Time incorrect #110

seventhsonmizo opened this issue Jan 7, 2020 · 35 comments

Comments

@seventhsonmizo
Copy link

Audio not playing and the time for any audio is not displaying properly. Everything is fine at the emu but testing on the real phone..
Screenshot_2020-01-07-21-06-14-212_com iven musicplayergo

@enricocid
Copy link
Owner

enricocid commented Jan 7, 2020

Hello,
thanks for reporting, unfortunately I don't have other manufacturers devices to test than xiaomi/google. Would You mind sharing device info, android version and an audio sample? Thanks

@seventhsonmizo
Copy link
Author

I am testing on Xiaomi Mi 8SE, running AndroidX

@seventhsonmizo
Copy link
Author

All audio is not playing.. any type.. m4a, mp3..etc.

@enricocid
Copy link
Owner

Need a logcat then :)

@enricocid
Copy link
Owner

I still don't have Android 10 and afaik there could be problems with scoped storage. Could You try this?

https://drive.google.com/open?id=1_8iOCDjy5UV-OZw7xYYm1FC9GDu8_yJJ

@seventhsonmizo
Copy link
Author

Yes..this is working. Any change on source code?

@enricocid
Copy link
Owner

enricocid commented Jan 7, 2020

I added

android:requestLegacyExternalStorage="true"

to the app's manifest to temporarily opt out scoped storage on Android 10.
Source: https://developer.android.com/training/data-storage/compatibility

In build.gradle I added

lintOptions {
    disable 'UnusedAttribute'
}

to disable the lint warning (attribute is only used in api 29).

Gonna remove this attributes as soon as I get Android 10 and some more info on how to access files paths (deprecated in Android 10), hopefully before Android 11 when it will be impossibile to opt out scoped storage.

@seventhsonmizo
Copy link
Author

It works now by adding those codes. But the volume is low. Maximum volume is like 50% of the volume from my default music player.

Sorry for late reply...I can only check out at night due to my works..
I will continue at evening

@enricocid
Copy link
Owner

No problem. Thanks for reporting. I will be able to tackle the volume issue as soon as I receive Android 10 on my Mi A2 lite :)

@enricocid
Copy link
Owner

enricocid commented Jan 8, 2020

I added an option to disable precise volume control. Let me know if disabling volume control fixes the issue

https://drive.google.com/open?id=16hcFxDVVIhcJ6DO-xJ6_8uv5PUqibKvd

I will rework this feature once I receive android 10

@seventhsonmizo
Copy link
Author

Yup.. this apk works great now.

@seventhsonmizo
Copy link
Author

Please update me the changes when you ready..

@enricocid
Copy link
Owner

Changes have been pushed :)

be6abf1

@enricocid
Copy link
Owner

enricocid commented Jan 10, 2020

Hi,

I've added back scoped storage, so I removed the attribute from manifest.
I replaced data with content uri, could you please let me know if it works properly so I can push the changes?

https://drive.google.com/open?id=1x79yAP3fcr1d6tMfhhXiy-13BGR8R3vK

Thanks

@kfiven
Copy link
Contributor

kfiven commented Jan 12, 2020

Re: Isn't fetching songs... [from Play Store]

I have tried this debug apk and latest from Issue:105; in both cases app crashed after opening.

If the issue isn't related to this one, I can open new.

@enricocid
Copy link
Owner

enricocid commented Jan 12, 2020

send me a bug report if You can with the apk posted here. Refer to this guide :)

https://developer.android.com/studio/debug/bug-report

@kfiven
Copy link
Contributor

kfiven commented Jan 12, 2020

https://paste.ee/p/W7Ol5 Is it helpful?

@enricocid
Copy link
Owner

Have you granted read external storage permission?

@kfiven
Copy link
Contributor

kfiven commented Jan 12, 2020

yes

@enricocid
Copy link
Owner

Ok, gonna send test APK soon :)

@enricocid
Copy link
Owner

enricocid commented Jan 12, 2020

yes

here you go: link

@enricocid
Copy link
Owner

yes

This is the latest debug apk

https://drive.google.com/open?id=1B4Oe7ihoeDEDfS4ajqbP4kE5N3w5CaGO

@kfiven
Copy link
Contributor

kfiven commented Jan 13, 2020

https://paste.ee/p/FJQ7T not working

@enricocid
Copy link
Owner

enricocid commented Jan 13, 2020

https://paste.ee/p/FJQ7T not working

Hello,
I've reviewed the permission request. Please let me know if the problem persists

https://drive.google.com/open?id=1XqyepuJFeXf_edOfD8ZuhIJ_DufmBoxG

@kfiven
Copy link
Contributor

kfiven commented Jan 13, 2020

https://paste.ee/p/enTok - on first open after install

https://paste.ee/p/SNcpI - on second open

@enricocid
Copy link
Owner

enricocid commented Jan 13, 2020

@kfiven
Copy link
Contributor

kfiven commented Jan 13, 2020

https://paste.ee/p/m7JA6 - on first open

https://paste.ee/p/CVJ3N - on second open

@kfiven
Copy link
Contributor

kfiven commented Jan 14, 2020

None of them are working.. Haven't checked the logcat as I'm away from machine.

@enricocid
Copy link
Owner

enricocid commented Jan 14, 2020

None of them are working.. Haven't checked the logcat as I'm away from machine.

Send me a bug report as soon as you can. This time try to send be a complete bug report via developer options (you don't need PC for this ) :) thanks

@enricocid
Copy link
Owner

When you have time please try this :)

https://drive.google.com/open?id=1YaYlk_MSkhwcTfLz_dSKtkLDsXUj_TOt

Thanks

@enricocid
Copy link
Owner

enricocid commented Jan 15, 2020

None of them are working.. Haven't checked the logcat as I'm away from machine.

Hello,
I finally was able to reproduce the null pointer on android Q. Basically it was caused by music files placed in the root folder of the phone whose relative path was returning null.

Could you please confirm it is working now?

https://drive.google.com/open?id=1Onny90jLsrfxO0UbWBYU2hPNAIb0wB8I

@kfiven
Copy link
Contributor

kfiven commented Jan 15, 2020

Could you please confirm it is working now?

Yes, working.. thanks.

@enricocid
Copy link
Owner

enricocid commented Jan 15, 2020

Closing then :)

@enricocid
Copy link
Owner

Hi guys.
I have never asked for donations as I don't really need.

This time I'm asking You a little effort.

If You liked my work and You want to manifest support for my project please consider to donate to a friend of mine who is living a very difficult situation (lost his job and the home).

gofundme page

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants