Code: Select all
class PlayerApp : public wxApp
{
public:
bool OnInit()
{
wxFrame *main = new wxFrame(NULL, wxID_ANY, wxT("App"));
wxMediaCtrl *media = new wxMediaCtrl(main, wxID_ANY, wxT("/home/xargon/media.avi"));
media->ShowPlayerControls();
main->Show(true); // show it
media->Play();
return true;
}
};
wxIMPLEMENT_APP(PlayerApp);
When I call ShowPlayerControls(), I do not see any player controls actually. I am guessing this is due to the underlying media system. Is that correct? In any case, I do not want to show any controls. Would that usually be as simple as removing this call to the ShowPlayerControls()
Second, this shows the video quite distorted. I would like to show the video with its original size. How can I go about doing that?