Giter Site home page Giter Site logo

Comments (10)

sarbazx avatar sarbazx commented on July 23, 2024 1

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.

ryanheise avatar ryanheise commented on July 23, 2024 1

You can send it via email.

from just_audio.

ryanheise avatar ryanheise commented on July 23, 2024 1

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.

ryanheise avatar ryanheise commented on July 23, 2024

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.

ryanheise avatar ryanheise commented on July 23, 2024

@sarbazx do you have a URL I can test?

from just_audio.

sarbazx avatar sarbazx commented on July 23, 2024

@ryanheise is there any private channel so I can share with you? I do not want publicly share the link.

from just_audio.

ryanheise avatar ryanheise commented on July 23, 2024

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.

sarbazx avatar sarbazx commented on July 23, 2024

Hi @ryanheise thanks for checking out, I have looked into exoplayer issues and found this issue google/ExoPlayer#7046
image

does this mean they have fixed in latest version or it is not yet published?

from just_audio.

ryanheise avatar ryanheise commented on July 23, 2024

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.

ryanheise avatar ryanheise commented on July 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.