Comments (12)
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.
Just committed.
from just_audio.
@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.
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.
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.
I've just added some code to hopefully support m3u8 files if they have a .m3u8
extension. Can you try?
from just_audio.
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.
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.
Thank you, I'm waiting for you.
from just_audio.
Great !, it's working fine.
Thank you.
from just_audio.
Thanks for confirming :-)
from just_audio.
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)
- 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
- [just_audio] iOS isn't reconnecting to live streams, but Android does. HOT 2
- Unhandled Exception: Loading interrupted HOT 2
- Unhandled Exception: Loading interrupted HOT 2
- Unhandled Exception: Loading interrupted HOT 3
- in honor magic5 ,android system music play bar can stop,but can not replay,in another device oneplus 8t ,it works HOT 1
- [AudioPlayer onComplete:] + 752
- AAC encoded m4a recorded on Android file can't play on Ios(-11800) The operation could not be completed) HOT 2
- MissingPluginException(No implementation found for method load on channel com.ryanheise.just_audio.methods.9fa181e4-a115-4d9c-8bcc-2029bdac1054) HOT 1
- MissingPluginException(No implementation found for method load on channel com.ryanheise.just_audio.methods.9fa181e4-a115-4d9c-8bcc-2029bdac1054 HOT 1
- Manifest merger failed : uses-sdk:minSdkVersion 21 cannot be smaller than version 33 declared in library [:audio_session] HOT 1
- Playing audio files on iOS that were saved on Android does not work. HOT 6
- MissingPluginException (MissingPluginException(No implementation found for method init on channel com.ryanheise.just_audio.methods) HOT 1
- [MissingPluginException(No implementation found for method init on channel com.ryanheise.just_audio.methods)] HOT 1
- MissingPluginException(No implementation found for method init on channel com.ryanheise.just_audio.methods) HOT 1
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.