Comments (10)
Hi @ryanheise I am also getting exception when url is in opus format
flutter: Error: (-11850) Operation Stopped
[VERBOSE-2:ui_dart_state.cc(177)] Unhandled Exception: PlatformException(-11850, Operation Stopped, null, null)
from just_audio.
You can send it via email.
from just_audio.
OK, so looking at the code, it seems for both Opus and FLAC, there should be some basic built-in support.
However, full support seems to require the extensions.
Both extensions are BSD-licensed which I should be able to incorporate.
The only thing I need to find is the best way to include ExoPlayer extensions in a Flutter plugin.
In the meantime, you can look at the approach taken in #32 , or of course you can add the extension if you download your own copy of ExoPlayer locally and follow ExoPlayer's instructions.
from just_audio.
Hi @BeMacized I don't recall whether the error catching code in just_audio was there when you reported this bug, but is this still a problem? And if it is, do you have a URL file that I can test?
I also don't remember whether I updated the version of ExoPlayer since you filed this bug, so it is also possible that the current version of ExoPlayer no longer has this issue.
from just_audio.
@sarbazx do you have a URL I can test?
from just_audio.
@ryanheise is there any private channel so I can share with you? I do not want publicly share the link.
from just_audio.
I have just tested with the opus sample file at https://docs.espressif.com/projects/esp-adf/en/latest/design-guide/audio-samples.html and it worked, so it sounds like it's dependent on the particular opus file.
@sarbazx I did check out the opus file you emailed me and can confirm the error. I've upgraded just_audio to the latest ExoPlayer dependency and that also didn't fix it, so you will also need to correspond directly with the authors of ExoPlayer with a sample opus file that fails. You can file a bug directly with the ExoPlayer project here:
https://github.com/google/ExoPlayer/issues
Regarding the ability to catch this error, the latest version of just_audio should allow you to do that by placing a try/catch around the await setUrl
(or similar) call.
from just_audio.
Hi @ryanheise thanks for checking out, I have looked into exoplayer issues and found this issue google/ExoPlayer#7046
does this mean they have fixed in latest version or it is not yet published?
from just_audio.
The fix is published, and just_audio is now using it in the latest git commit.
It is possible their fix isn't a complete fix, or that your issue is a different error with similar symptoms, or that they did fix the bug but reintroduced the bug in a later commit.
from just_audio.
Just checking the jar files included with just_audio, it it seems (to my surprise) that the opus decoder is not included by default. For that matter, (unless I'm not checking correctly), the FLAC decoder is also not included by default, despite ojw28 saying that it would now be possible to use it without having to add any extensions.
I'll have to look into this further.
from just_audio.
Related Issues (20)
- [Android] Sound stops playing when backgrounding app and letting phone go to sleep HOT 2
- Track completes too eary HOT 10
- "Getting 'type 'Null' is not a subtype of type 'MediaItem' error with Just Audio Background package' HOT 2
- 22 kHz mono mp3s have wrong duration and seek behavior HOT 7
- Error during file preparation on Android 6 when playing MP3 files: "setConfig(1 .mp3.decoder, ConfigPriority(0x6f800002)) ERROR: Undefined(0x80001001)" HOT 2
- Error during file preparation on Android 6 when playing MP3 files HOT 4
- Compile WEB release plugin dosent work HOT 2
- Compile WEB release plugin dosent work HOT 6
- Sound is not played on iOS 17.5.1 in background HOT 2
- PlatformException(561017449, The operation couldn't be completed. (OSStatus error 561017449.), null, null) 👉 IOS HOT 2
- Support rxdart 0.28.0 HOT 1
- PlatformException(561017449, The operation couldn't be completed. (OSStatus error 561017449.), null, null) //IOS BUG HOT 2
- Incorrect AudioPlayer Position data on Android HOT 1
- Command failed for android_media_AudioSystem_error_callback: -32, AudioFlinger server died & AudioPolicyService server died. HOT 2
- Error when streaming on iOS or MacOS HOT 2
- AudioSource.uri does not set dynamically headers HOT 1
- Pause ,Stop or any other functions not working while play function called HOT 2
- No longer maintained packages in the readme HOT 6
- sound cuts out HOT 2
- How can get the current playing position? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from just_audio.