Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Using VideoLAN.LibVLC.Windows and LibVLCSharp.WinForms NuGet packages to display an RTSP audio/video stream in a WinForms window. It is working but I often see the message "unsupported control query 3" in the LibVLC Log event.

Is there anything that I can do in my program so that this event isn't thrown by LibVLC?

Imports LibVLCSharp.Shared
    ...
Dim WithEvents VLCLibrary As LibVLC
Dim WithEvents VLCMediaPlayer As MediaPlayer
...
If Not DesignMode Then
    Core.Initialize()
End If
VLCLibrary = New LibVLC(False, "")
VLCMediaPlayer = New MediaPlayer(VLCLibrary)
TheViewer.MediaPlayer = VLCMediaPlayer
With TheViewer.MediaPlayer
    .Scale = 0 ' Change size of video to match the window
    .Volume = 100 ' Full volume
    .NetworkCaching = 2000
    .EnableHardwareDecoding = True
End With
VLCMediaPlayer.Play(New Media(VLCLibrary, "rtsp://xxx.xxx.xxx.xxx/STREAM", FromType.FromLocation))

...

Private Sub VLCLibrary_Log(sender As Object, e As LogEventArgs) Handles VLCLibrary.Log
        Debug.WriteLine($"{Format(Now, "HH:mm:ss.ffff")} {e.Message}")
    End Sub


Versions
.NET Framework 4.8
VideoLAN.LibVLC.Windows 3.0.16
LibVLCSharp.WinForms 3.6.6

What I have tried:

I have been unable to find any documentation that explains the "unsupported control query 3" error message or what causes it.
Posted
Updated 24-Mar-22 10:09am
v2
Comments
Maciej Los 24-Mar-22 15:55pm    
What line - exactly - causes the error?
Mike Meinz 24-Mar-22 16:08pm    
The error occurs while the audio/video stream in playing. It occurs multiple times during the time that the audio/video stream is playing. Audio/video play starts when
VLCMediaPlayer.Play(New Media(VLCLibrary, "rtsp://xxx.xxx.xxx.xxx/STREAM", FromType.FromLocation))
is called.
Peter_in_2780 24-Mar-22 18:52pm    
https://code.videolan.org/videolan seems pretty active. You could try raising an issue there.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900