INTERACT FORUM

Windows => Television => Topic started by: tzr916 on February 25, 2024, 02:32:56 pm

Title: Client live tv
Post by: tzr916 on February 25, 2024, 02:32:56 pm
I found an odd behavior:
Start live tv on a Client (OpenCable tuner on Server), without pressing stop on live tv, navigate to Video and play some files => The tuner is not released (Server says "serving client").

Stopping playback of video files on the Client has no affect (Server tuner not released).
Closing MC on the Client has no affect  (Server tuner not released).
Rebooting the Client machine has no affect (Server tuner not released).
Re-open MC on the Client has no affect (Server tuner not released).

If I hard reboot the tuner, the Server complains about "no data received in 30 seconds" and still says "serving client" (but the LED on the tuner is actually no longer busy). Only way out is to restart MC on the Server.
Title: Re: Client live tv bug
Post by: JimH on February 25, 2024, 04:45:00 pm
Stop or pause?
Title: Re: Client live tv
Post by: tzr916 on February 25, 2024, 05:05:19 pm
On the Server, I don't have to press stop before navigating from live tv to play a video file. MC stops the tuner, and plays the selected video file.

Not the case on Clients (using a tuner from the Server). If I navigate from live tv to play a video file (without pressing stop inside live tv), the tuner is NOT released and the only way to free up the tuner is to hard reboot the device and restart MC on the Server machine.
Title: Re: Client live tv
Post by: Yaobing on February 26, 2024, 07:52:39 pm
Not looking at my code now, but client probably will notify the server only on Stop being explicitly pressed.  If the server does not receive such notification, it will continue serving for about 30 minutes.  The server will stop serving if it does not receive keep-alive requests from any client for 30 minutes.

I will take a look when I get around to it.
Title: Re: Client live tv
Post by: Yaobing on March 04, 2024, 04:23:05 pm
Fixed in an upcoming build:

Fixed: While playing a live TV channel on a client using a server TV  tuner, switching to a different media type (e.g. Audio or Video) without explicitly click the Stop button would cause the server tuner not being released (for an hour).

I did have code that was supposed to handle the situation where the Stop button is not clicked, but it missed the case when the new file is of a different media type.