The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 802 - File: showthread.php PHP 7.4.34 (Linux)
File Line Function
/showthread.php 802 errorHandler->error





Post Reply 
How to detect on Windows if MinimServer (+BubbleUPnP Server) is actively streaming?
17-11-2018, 12:01 (This post was last modified: 17-11-2018 12:07 by Uoppi.)
Post: #1
How to detect on Windows if MinimServer (+BubbleUPnP Server) is actively streaming?
I'm trying to toggle my PC power profiles (sleep after 5 min & never sleep) based on whether there's active streaming going on or not (between MinimServer and BubbleUPnP Server, which are on the same HTPC, reading from a NAS).The rationale for it being, normal sleeping tweaks and power on request overrides etc. don't work.

What I've got halfway working is to loop a query ('netstat -an') from a batch script, on a specific x.x.x.x.:9790 port. Is there any other method to check whether MinimServer is actively streaming? I'm thinking maybe mscript (which I'm unfamiliar with), or a batch script scanning the contents of some MinimServer log etc.? I'd really appreciate some help.

The x.x.x.x.:9790 port I mentioned is always opened when streaming starts but that also requires making the urlcache in BubbleUPnP Server read-only, so that BubbleUPnP Server always needs an active connection to MinimServer while streaming.

Everything seems to work fine up until streaming has stopped. Sometimes the x.x.x.x.:9790 disappears from the netstat active connection list after a few minutes but sometimes the connection appears to get stuck in established mode. What this means is that then my PC also remains in the never-sleep power profile Sad. I haven't been able to decipher the logic, the connection closing or not post-streaming seems hit-and-miss.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
How to detect on Windows if MinimServer (+BubbleUPnP Server) is actively streaming? - Uoppi - 17-11-2018 12:01

Forum Jump:


User(s) browsing this thread: 2 Guest(s)