I have Samsung UE40J5200AW and it has that screen mirroring feature. Whenever I try to use to cast from Windows 11 to this TV, the stream stops after few mins of playing.
I have no idea if Samsung doesnt allow to play full screen videos from casting devices or not. I have tried to connect both PC and TV via Ethernet and see if it will help, but its happening all the time.
Whats interesting it also happens when I cast via my lineage os phone and I checked it on different TV and had the same issue.
Whats your ways to cast videos from PC/laptop to TV?
I use Rygel on my laptop to serve all the videos and VLC for Android on my Chromecast which is connected via HDMI to the TV. Both Laptop and Chromecast are on the same WiFi at home.