-
-
Notifications
You must be signed in to change notification settings - Fork 620
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
PlatformException on setUrl method call #18
Comments
Can you share stack trace from the logcat logs? That will tell me what line number the exception occurred on. |
I have just done a major re-implementation so whatever bug you encountered might be gone. Can you please try it and let me know (including stack traces) if you still get an error. |
Stacktrace from logcat: `2019-12-31 16:28:52.486 14407-14407/org.rfnd.transistor.radio.app E/AccessibilityBridge: VirtualView node must not be the root node. ` |
Sorry I should have clarified that the new code is committed to git but not yet published to pub.dev until it's been tested, so to try it you would have to clone the repo. |
Ok, I`ll try |
Now it works, thank you. Is there any tutorial how to use audio_service with just_audio? |
After a little more testing of |
@ryanheise, what about example? |
Hi @maxsalo17 The example of |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs, or use StackOverflow if you need help with just_audio. |
When i call setUrl method, i have "PlatformException (PlatformException(Error: java.lang.NullPointerException: Attempt to invoke virtual method 'long java.lang.Long.longValue()' on a null object reference"
My player class:
`import 'package:just_audio/just_audio.dart';
class RadioAudioPlayer {
AudioPlayer player;
static final RadioAudioPlayer _instance = RadioAudioPlayer._internal();
factory RadioAudioPlayer() {
return _instance;
}
RadioAudioPlayer._internal();
initialize(){
player = AudioPlayer();
}
playFromUrl(url)async{
await player?.setUrl(url);
player?.play();
}
stop() async {
await player?.stop();
}
}`
The text was updated successfully, but these errors were encountered: