Casting to chromecast doesn't work in UWP
Summary
I'm trying to make Chromecast sample to work on UWP: https://code.videolan.org/mfkl/libvlcsharp-samples/-/tree/master/Chromecast/Chromecast
RendererDiscoverer is able to discover chromecasts, but when I'm trying to start casting it doesn't work. I added --verbose=3 for logging, see output in a logging section below.
Minimal project and steps to reproduce
I uploaded sample to github, see https://github.com/vlasenkoalexey/LibVLCSharp.UWP.Sample_chromecast
What is the current bug behavior?
Casting doesn't work
What is the expected correct behavior?
Casting should work.
Does it work on other plaforms? Does it work with the official VLC apps?
Chromecast casting works in https://github.com/v01d21/VLC.MediaElement Casting also works fine in Windows Store VLC app
Relevant logs and/or screenshots
looking for renderer_discovery module matching "microdns_renderer": 1 candidates
mDNS: listening to _googlecast._tcp.local renderer
using renderer_discovery module "microdns"
New item discovered: Play room TV of type chromecast
Can render video
Can render audio
New item discovered: Dining room TV of type chromecast
Can render video
Can render audio
New item discovered: Master Bedroom Speaker of type chromecast
Can render audio
New item discovered: Pioneer VSX-LX102 E9E472 of type chromecast
Can render audio
The thread 0x17e8 has exited with code 0 (0x0).
The thread 0x2a0c has exited with code 0 (0x0).
The thread 0x28b4 has exited with code 0 (0x0).
The thread 0x4558 has exited with code 0 (0x0).
removing module "winstore"
Creating an input for 'ElephantsDream.mp4'
using sout chain=`chromecast{ip=192.168.0.199,port=8009}'
stream=`chromecast'
set config option: sout-chromecast-ip to 192.168.0.199
set config option: sout-chromecast-port to 8009
using GnuTLS version 3.5.19
cannot allocate credentials: Internal error in memory allocation.
The thread 0x27f4 has exited with code 0 (0x0).
TLS client plugin not available
no tls client modules matched
HTTP host removed
cannot load the Chromecast controller (Failed to create TLS client)
destroying chain... (name=(null))
stream chain failed for `chromecast{ip=192.168.0.199,port=8009}'
looking for sout stream module matching "chromecast": 22 candidates
destroying chain done
looking for tls client module matching "any": 1 candidates
no sout stream modules matched
cannot start stream output instance, aborting
net: listening to * port 8010
The thread 0x3e58 has exited with code 0 (0x0).
Environment
- OS: Windows
- Version 10
- Device: Laptop x86
- LibVLC version and architecture 3.2.0 (from nuget)
- LibVLCSharp version 3.4.2 (from nuget)