Comments (3)
Minimal reproduction project
Provide a link here using one of two options: "The example".
You can't say "The example" when the example doesn't use StreamAudioSource
. This is your second strike. Please get the issue submission right on the 3rd time.
from just_audio.
Hi @ryanheise, updated the "Minimal reproduction project" with link to forked project with modifications in example.
from just_audio.
Minimal reproduction project
Provide a link here using one of two options: "The example".You can't say "The example" when the example doesn't use
StreamAudioSource
. This is your second strike. Please get the issue submission right on the 3rd time.
It looks like the sample code has been updated to use the StreamAudioSource starting at line 247. We are wanting to use this player, but need to use HLS streaming. Is this bug a showstopper for us in that case? @ryanheise @sibias
class AudioStreamSource extends StreamAudioSource {
final Uint8List _buffer;
AudioStreamSource(this._buffer) : super(tag: 'MyAudioSource');
@override
Future<StreamAudioResponse> request([int? start, int? end]) async {
// Returning the stream audio response with the parameters
return StreamAudioResponse(
sourceLength: _buffer.length,
contentLength: (end ?? _buffer.length) - (start ?? 0),
offset: start ?? 0,
stream: Stream.fromIterable([_buffer.sublist(start ?? 0, end)]),
contentType: 'audio/mpeg',
);
}
}
class TestStreamAudioSource extends StreamAudioSource {
TestStreamAudioSource({dynamic tag}) : super(tag: tag);
@override
Future<StreamAudioResponse> request([int? start, int? end]) async {
return StreamAudioResponse(
contentType: 'audio/mock',
stream: Stream.value(byteRangeData.sublist(start ?? 0, end)),
contentLength: (end ?? byteRangeData.length) - (start ?? 0),
offset: start ?? 0,
sourceLength: byteRangeData.length,
);
}
}
from just_audio.
Related Issues (20)
- 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 2
- MissingPluginException(No implementation found for method load on channel com.ryanheise.just_audio.methods.9fa181e4-a115-4d9c-8bcc-2029bdac1054 HOT 2
- Manifest merger failed : uses-sdk:minSdkVersion 21 cannot be smaller than version 33 declared in library [:audio_session] HOT 2
- 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 2
- [MissingPluginException(No implementation found for method init on channel com.ryanheise.just_audio.methods)] HOT 2
- MissingPluginException(No implementation found for method init on channel com.ryanheise.just_audio.methods) HOT 2
- Unable to Adjust Volume on iOS Browsers Using just_audio Library HOT 2
- Unable to Adjust Volume on iOS Browsers Using just_audio Library HOT 1
- Extra beep on iOS HOT 3
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.