Can not initialize xv output

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
User avatar
Azrael
Knows some wx things
Knows some wx things
Posts: 37
Joined: Sat Aug 05, 2017 2:44 pm
Location: Italy

Can not initialize xv output

Post by Azrael »

Hello,
I found this media player on github : https://github.com/wxWidgets/wxWidgets/ ... player.cpp

I copied it in a new project and ran it. I tried to open a file from the menu but I got this error: "Media Playback error. Could not initialize Xv output".
I thought that maybe my problem was the .mp3 file so i opened it in rhythmbox (I use ubuntu). I got the same error so I tried to solve that problem first. I installed some libraries: libxv, gstreamer( with "bad" and "ugly" plugins), ubuntu-restricted-extra. I also reinstalled rhythmbox.
Now i don't get that error and i can play .mp3 files (in rhythmbox).

I still get the "could not initialize xv output" error when i try to open the files from the app i got from github.

I'm also getting these messages:
Image

I am using the code as an example for my own music player. I know it has something to do with Load() because I defined this function

Code: Select all

void addFile( wxFilePickerCtrl* filePicker, wxMediaCtrl* mediaController){

wxString path = filePicker -> GetPath();
mediaController -> Load(path);

}
and I get the exact same error.

What should I do ?
Post Reply