Giter Site home page Giter Site logo

Comments (12)

ryanheise avatar ryanheise commented on July 23, 2024 1

The way I implemented it was to check if the URL ends with .m3u8 but I see I should factor in the query string. Let me see what I can do.

from just_audio.

ryanheise avatar ryanheise commented on July 23, 2024 1

Just committed.

from just_audio.

ryanheise avatar ryanheise commented on July 23, 2024

@cnttechio I'm not clear on the exact nature of the issue, such as whether this is on Android or iOS, and what exact error was reported in the logs. Can you share details to help me to investigate?

from just_audio.

ryanheise avatar ryanheise commented on July 23, 2024

I have modified the implementation to use ExoPlayer including whatever its default codec support is. Can you try the latest commit and let me know how it goes?

from just_audio.

cnttechio avatar cnttechio commented on July 23, 2024

hi @ryanheise,

I have just clone source from git and run your example with my change file mp3 to m3u8 but it's not working.

I'm trying it on android.

My errors:

E/flutter ( 9537): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: PlatformException(Illegal state: Can call stop only from playing/paused/stopped/completed states (connecting), null, null)
E/flutter ( 9537): #0 StandardMethodCodec.decodeEnvelope
package:flutter/…/services/message_codecs.dart:569
E/flutter ( 9537): #1 MethodChannel.invokeMethod
package:flutter/…/services/platform_channel.dart:321
E/flutter ( 9537):
E/flutter ( 9537): #2 AudioPlayer._invokeMethod
package:just_audio/just_audio.dart:269
E/flutter ( 9537):
E/flutter ( 9537): #3 AudioPlayer.stop
package:just_audio/just_audio.dart:229
E/flutter ( 9537): #4 _InkResponseState._handleTap
package:flutter/…/material/ink_well.dart:706
E/flutter ( 9537): #5 _InkResponseState.build.
package:flutter/…/material/ink_well.dart:789
E/flutter ( 9537): #6 GestureRecognizer.invokeCallback
package:flutter/…/gestures/recognizer.dart:182
E/flutter ( 9537): #7 TapGestureRecognizer.handleTapUp
package:flutter/…/gestures/tap.dart:486
E/flutter ( 9537): #8 BaseTapGestureRecognizer._checkUp
package:flutter/…/gestures/tap.dart:264
E/flutter ( 9537): #9 BaseTapGestureRecognizer.handlePrimaryPointer
package:flutter/…/gestures/tap.dart:199
E/flutter ( 9537): #10 PrimaryPointerGestureRecognizer.handleEvent
package:flutter/…/gestures/recognizer.dart:467

from just_audio.

ryanheise avatar ryanheise commented on July 23, 2024

I've just added some code to hopefully support m3u8 files if they have a .m3u8 extension. Can you try?

from just_audio.

cnttechio avatar cnttechio commented on July 23, 2024

Amazing, It's working fine on android, so I will integrate into my app and report to you if I have some issues.
Thank @ryanheise very much & happy new year.

from just_audio.

cnttechio avatar cnttechio commented on July 23, 2024

hi @ryanheise,
I have set the URL file with a token on query string and just audio not working.
Example:
_player.setUrl('https://domain.com/abc.m3u8?token=tokenUser')
Can you show me how to fix it?

from just_audio.

cnttechio avatar cnttechio commented on July 23, 2024

Thank you, I'm waiting for you.

from just_audio.

cnttechio avatar cnttechio commented on July 23, 2024

Great !, it's working fine.
Thank you.

from just_audio.

ryanheise avatar ryanheise commented on July 23, 2024

Thanks for confirming :-)

from just_audio.

github-actions avatar github-actions commented on July 23, 2024

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.

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.