I'm writing an update to my plugin but video playback is refusing to go fullscreen - i get a black screen with the video playing at native resolution. I want it to play zoomed/ stretched. I've tried everything I can think of and nothing seems to make a difference. I've cleaned my system, I have a fresh install of mediaportal and i'm testing with the Titan skin and here is a snapshot of my desperation:
public bool PlayVideoStreamInFullScreen(string url, string name)
{
// Stop player if already playing
if (g_Player.Playing)
{
g_Player.Stop();
}
g_Player.FullScreen = true;
g_Player.ARType = Geometry.Type.Zoom;
Log.Debug("Playing: " + url);
if (g_Player.PlayVideoStream(url, name))
{
//Log.Debug("showing fullscreen");
g_Player.ShowFullScreenWindowVideo();//.ShowFullScreenWindow();
g_Player.PlayBackStarted += new g_Player.StartedHandler(g_Player_PlayBackStarted);
//Log.Debug("done");
return true;
}
return false;
}
void g_Player_PlayBackStarted(g_Player.MediaType type, string filename)
{
g_Player.ARType = Geometry.Type.Zoom;
}
please let me know where i'm going wrong - this used to work fine in an older version of MP. I can right click on the playing video and select the zoomed aspect ratio and that then expands to fullscreen but i just can't get it working by default.
public bool PlayVideoStreamInFullScreen(string url, string name)
{
// Stop player if already playing
if (g_Player.Playing)
{
g_Player.Stop();
}
g_Player.FullScreen = true;
g_Player.ARType = Geometry.Type.Zoom;
Log.Debug("Playing: " + url);
if (g_Player.PlayVideoStream(url, name))
{
//Log.Debug("showing fullscreen");
g_Player.ShowFullScreenWindowVideo();//.ShowFullScreenWindow();
g_Player.PlayBackStarted += new g_Player.StartedHandler(g_Player_PlayBackStarted);
//Log.Debug("done");
return true;
}
return false;
}
void g_Player_PlayBackStarted(g_Player.MediaType type, string filename)
{
g_Player.ARType = Geometry.Type.Zoom;
}
please let me know where i'm going wrong - this used to work fine in an older version of MP. I can right click on the playing video and select the zoomed aspect ratio and that then expands to fullscreen but i just can't get it working by default.
Last edited: