Comments (4)
Resolved for Matrix baseline via cb21ccf
Solution will need to back-ported to Leia baseline as well, implementation will differ. Will close this issue after that has been completed.
The way this worked out, as long as the RTL-SDR device is actively being used, a reference to that device will be maintained. So for rtl_tcp connections, the connection itself will not be closed for at least 30 seconds after it was last used. This isn't a perfect solution, it can still fail if the user tries to open a new rtl_tcp connection within a few seconds of it actually getting released, but in practice it's working pretty well. The only other real alternative is to maintain the connection indefinitely which would be horrible for users with multiple clients hitting the same rtl_tcp instance. After using it, you'd have to shut down/restart Kodi on one system to use it on another.
I'm sure this will need adjustments in the future.
from pvr.rtlradio.
Changeset for Leia baseline committed via 172ab4a
Closing Issue.
from pvr.rtlradio.
Re-opening issue because I'm not satisfied with the results. While the proposed solution 'works', rtl_tcp loads up a bunch of packets from the currently tuned frequency and will dump them to the client when it reconnects. I would prefer a more definitive DISCONNECT type of thing here, which may be possible by modifying the SO_LINGER socket option.
The ideal scenario would be to get rtl_tcp to disconnect immediately and reset itself without waiting for 5-10 seconds. Until that happens I don't see how this can work properly ...
from pvr.rtlradio.
Instead of trying to work around the problems with rtl_tcp, I've modified my forked version of the rtl-sdr library to include blinick's patch that gets rid of the condition variable that causes the delay (https://github.com/blinick/rtl-sdr/tree/wip_rtltcp_ringbuf). I've also upped the connect timeout to 5 seconds instead of 1 second in the PVR, but that's still not enough to 'solve' the problem with the official rtl_tcp.
Marking as closed; will be a documentation concern.
from pvr.rtlradio.
Related Issues (20)
- Unable to navigate in PVR Channel Manager via Keyboard/Remote Control if there are no channels in the list HOT 1
- RTL_TCP buffers are not fully cleared on channel change/stop action HOT 1
- "WOW" effect present during initial channel playback HOT 1
- Unable to automatically determine RDS vs. RBDS on OSMC platform HOT 1
- Create RTL_TCP application for WD NAS devices HOT 1
- Add Channel Scan functionality HOT 2
- Add Capture Stream functionality HOT 1
- Run greyed out in Kodi HOT 4
- xbox version HOT 5
- Analog/Digital audio sync for HD Radio can be improved HOT 2
- Implement DAB(+) support HOT 3
- Adjust analog FM radio bandwidth HOT 4
- "File" device type needs a sample rate throttle HOT 1
- Signal Meter will lock up if an end-of-stream condition occurs HOT 1
- Add an automatic gain reduction mechanism when overload is detected HOT 1
- Refactor entirety of the signal meter HOT 2
- Add region prompt for next iteration HOT 1
- Fix DC spike in refactored signal meter HOT 1
- Implement a custom subchannel selection dialog HOT 1
- Update libANGLE 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 pvr.rtlradio.