Comments (5)
Sometimes when i call send()method it give me: java.net.SocketTimeoutException: Connection setup failure: socket closed during operation.
from srtdroid.
Hi,
Could you share how you use send()
(with the ByteBuffer or the ByteArray)?
About the second exception, it is explicit: the socket has been closed.
from srtdroid.
Hi,
in my java android project ,when,i used send(ByteBuffer) it give me java.net.SocketTimeoutException: Connection setup failure: socket closed during operation.
when i used send(ByteBuffer.array()) it give me Operation not supported: Incorrect use of Message API (sendmsg/recvmsg).
when i used srtSocket.getOutputStream(null).write(buffer.array()); it is ok.
but in your kotlin project,all is ok.
from srtdroid.
when i call send() method,then the socket been closed. Not socket been closed ,then call send() mistake. I test many times,and also see the server.
from srtdroid.
So, you don't face the first issue anymore?
I believe the only issue you face is that you are trying to use message API with an incorrect size of buffer. Either:
- use a buffer with the correct size
- use stream API
Please refer to the SRT documentation for more info.
from srtdroid.
Related Issues (18)
- openssl_project compiler error HOT 7
- I am having a problem trying to send camera stream to srt server (vMix) HOT 3
- is stable the srtdroid ? HOT 17
- Rendezvous mode works only with outgoing connection HOT 6
- Android video file upload HOT 6
- Upgrade to SRT 1.5.0 HOT 1
- Is there a Java version available HOT 1
- how to use the lib send byte array HOT 1
- How to add SRT over RTMP HOT 1
- Run failed HOT 6
- how to use MsgCtrl HOT 1
- How often to send a SDT PMT PAT? HOT 1
- srtdroid on API 19+ HOT 6
- how can I transfer the video stream from one android device to another and play it HOT 4
- Segfault when attempting to connect using hostname without internet (SRT v1.5.1) HOT 2
- I am getting build command failed issue when I am syncing this project in my system HOT 2
- streamID not working HOT 4
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 srtdroid.