event background:
An exe program (designed to hang up for 24 hours to watch video) is written under
. The program has a hypertext browse box embedded to open the specified URL and play the video in the URL. However, occasionally there will be buffering, and sometimes it will be stuck in the buffer interface for a long time, so it needs to be refreshed before it can be played normally.
unsolved requirements:
when is unattended , the program automatically determines whether the video is played normally. If it is on the buffer interface, the program will be refreshed automatically.
scenario:
add a thread to the program to monitor the sound card in real time. If there is no sound for as long as 5 minutes, the video is stuck and does not play properly. So start refreshing the url reload. (this is the only program that runs in the Windows system, and all other audible software is uninstalled. And there is always sound during the normal playback of the video, and there is no sound in the video for 1 minute in a row)
final question:
1. Is this scenario feasible?
2. If this is possible, how can I use C-sharp (or easy language) to detect whether the sound card is producing sound?
3. Is there any other way to monitor whether the video is playing properly in real time? (for example, detecting the pixel change of the progress bar, whether a certain picture area is static for a long time, etc.)
Thank you for your attention!