Comments (6)
Hello @dweberlj,
If you want to stream you should use sockets for that.
There is an example using dart for the server part:
- Server side: https://github.com/CasperPas/flutter-sound-stream/blob/master/example/server/server.dart
- Client side: https://github.com/CasperPas/flutter-sound-stream/blob/master/example/lib/main-talky.dart
This example will stream like a walky talkie.
I have tested it and it works.
The error you are getting it's because it's not a dio exception. You can check this way:
if (e is DioError) { print(e.response.statusCode); print(e.response.data); print(e); } print('$e');
from flutter-sound-stream.
Thanks @AyadRocketfy, we'll check out the client dart example and connect it to our nodejs server. Should be pretty straight forward.
Regards,
Dean
from flutter-sound-stream.
You welcome @dweberlj :)
from flutter-sound-stream.
Can i get a similar result using sockets and not websockets? Im tryng to communicate two smartphones and transmit audio that between them, but it hasen't work as i expected
from flutter-sound-stream.
Can i get a similar result using sockets and not websockets? Im tryng to communicate two smartphones and transmit audio that between them, but it hasen't work as i expected
Have you tried to use 1st device as a hotspot and connect from the second device?
from flutter-sound-stream.
Have you tried to use 1st device as a hotspot and connect from the second device?
Hey Math, thanks for replying! :)
My problem was solved using the "add" parameter in socket and preparing the socket as broadcast stream.
from flutter-sound-stream.
Related Issues (20)
- No control over volume level HOT 5
- Need null safety
- How is the audio data represented? HOT 3
- Export wav file HOT 1
- Export wav file HOT 1
- Disable Speaker? HOT 1
- Error while adding the package. Execution failed for task ':sound_stream:compileDebugKotlin'. HOT 6
- App crashed when method stop and dispose with RecorderStream and PlayerStream
- android studio throw error by just adding dependency HOT 4
- macOS support for flutter-sound-stream HOT 1
- Windows OS support for flutter-sound-stream
- Update to null safety for flutter 3.0.1 HOT 1
- recorder issue on IOS 15.4.1 HOT 1
- 'Class 'SoundStreamPlugin' is not abstract and does not implement abstract member public abstract fun onRequestPermissionsResult' while compiling. HOT 8
- App crashed when method stop HOT 1
- More points in pub.dev HOT 1
- Orange microphone bubble remains on iOS even after RecorderStream disposed. HOT 2
- App crashed on ios. HOT 3
- Crashes on start() HOT 3
- Could not resolve io.ktor:ktor-client-core:2.3.8. 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 flutter-sound-stream.