Knowing in advance if a media player will be able to play a file?

This forum is about all development around libVLC.
Nico6687
New Cone
New Cone
Posts: 5
Joined: 19 Sep 2020 08:25

Knowing in advance if a media player will be able to play a file?

Postby Nico6687 » 19 Sep 2020 14:02

Hello,

I have two related questions:

1) Is there a way to programmatically get the current list of all the files extensions accepted by the media player? (i.e. mp4 etc...)
I would like to allow the drag & drop of video files on a VideoView control on WinForms.
While the user is still dragging the file over the window, I would like to provide the right visual feedback (i.e. the right type of mouse cursor) if the user is dragging a valid or an un unplayable file (like .txt file or something else).

2) Even better would be the possibility to already know if the media player will actually be able to play the file (in the case the format is supported but a specific setting is not).
Or should I already try to create a Media object at that time and assign it to the media player and deal with possible errors?

Thank you for your help!

Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 23 guests