I am developing a media player using vlc-qt I wanted to know how can I identify that my player contains a video or not.
For example
m_player=new VlcMediaPlayer(m_instance);
m_media= new VlcMedia("",m_instance);
m_player->open(m_media);
m_player->play()
As you can see here my m_media is initialized with no video url so how can I check whether my m_media contains any video or not.
I wanted to know this because so that in my player i will control play/stop button.
According to
VlcMediasource, the string you give to the class can be retrieved using the getterVlcMedia::currentLocation(). From that string, you can useQFile::exists()to check if the file path exists.