[Helix-client-dev] Re: [Player-dev] Playing the video in full screen mode

[Helix-client-dev] Re: [Player-dev] Playing the video in full screen mode

Greg Wright gwright at real.com
Thu Sep 13 14:18:58 PDT 2007


Rakesh KN wrote:
> Hi all,
> 
> I'm trying to implement the full-screen option which can be used at the time
> of splay invocation (like -n)
> instead of a run-time option. I have the requirement to use splay always in
> full screen mode.
> 
> This is code excerpt:
> 
>         else if (0 == stricmp(argv[i], "-fs"))
>         {
>                 IHXSiteFullScreen* pSite = NULL;
>                 HX_RESULT rv = GetFullScreenSite(GetGlobal()->g_Players[0],
> pSite);
>                 
>                 if (SUCCEEDED(rv))
>                 {
>                     pSite->EnterFullScreen();
>                 }
> 
>                 HX_RELEASE(pSite);
>         }
> 

You can't enter full screen until playback starts or just before.
The reason is that until the engine opens the media file it doesn't know
if it has any visual components to it, and so, will not create any sites
until then (look at SitesNeeded() in exsitsup.cpp ). After that call is
made you can then play with the sites. So, I would keep a flag around
that toggles off of the command line option and then when playback
starts, if that flag is set, automatically go into full screen mode.

--greg.



> 
> But when I use the full-screen option this way, it gives "segmentation
> Fault" every time and crash.
> I found out that it crashes after invocation of GetFullScreenSite
> 
> Even it gives the same segmentation fault sometime when i use fullscreen
> option as runtime.
> But it plays the video in fullscreen atleast.
> 
> Please let me know if I'm missing anything here.
> 
> Regards, 
> Rakesh
>  
> -----Original Message-----
> From: Greg Wright [mailto:gwright at real.com] 
> Sent: Monday, September 10, 2007 10:55 PM
> To: Rakesh KN
> Cc: helix-client-dev at helixcommunity.org
> Subject: Re: [Player-dev] Playing the video in full screen mode
> 
> Rakesh KN wrote:
>> Rakesh KN wrote:
>>> Hi all,
>>>
>>>  
>>>
>>> I want to play splay in full screen mode. With reference to the following
>>> link, I tried using fs+/fs- but it is not working.
>>>
>>> also there is no code present in clientapps/simpleplayer/main.cpp related
>> to
>>> fs+ option.
>> 	> It works for me on HEAD, 310Atlas and 150Cay, what branch are
>> 	> you on? Now, while 'fs+' takes me to full screen it still doesn't
>> 	> play (windows). It just sits there. So, it does appear there is
>> 	> a bug in the full screen code of splay right now.
>>
>> 	--greg.
>> 	
>> As mentioned in my mail, I am using 150Cay, can you kindly tell me where
> to
>> look for 'fs+' option.
> 
> clientapps/simpleplayer/main.cpp
> 
> It is in there. Specifically:
> 
> #if defined(HELIX_FEATURE_VIDEO)
>              else if (ulLen >= 3 && pszCmdBuffer[0] == 'f' &&
> pszCmdBuffer[1] == 's')
>              {
>                  // Get the site
>                  IHXSiteFullScreen* pSite = NULL;
>                  HX_RESULT rv = GetFullScreenSite(GetGlobal()->g_Players[0],
> pSite);
>                  if (SUCCEEDED(rv))
>                  {
>                      // Are we coming or going from full-screen?
>                      if (pszCmdBuffer[2] == '+')
>                      {
>                          pSite->EnterFullScreen();
>                      }
>                      else if (pszCmdBuffer[2] == '-')
>                      {
>                          pSite->ExitFullScreen();
>                      }
>                  }
>                  HX_RELEASE(pSite);
>              }
> #endif /* #if defined(HELIX_FEATURE_VIDEO) */
> 
> 
> 
> 
> --greg.
> 
> 
>> --Rakesh
>>
>>>  
>>>
>>>
> http://lists.helixcommunity.org/pipermail/helix-client-dev/2007-January/0056
>>> 46.html
>>>
>>>  
>>>
>>> System-id: linux-2.2-libc6-gcc32-i586
>>>
>>> Branch: helix_1_5_0_cayenne
>>>
>>> Target: splay
>>>
>>> Profile: helix-client-all-defines
>>>
>>>  
>>>
>>> Does any one have update on this.
>>>
>>>  
>>>
>>> Regards, 
>>>
>>> Rakesh
>>
>> DISCLAIMER
>> ==========
>> This e-mail may contain privileged and confidential information which is
> the property of Persistent Systems Pvt. Ltd. It is intended only for the use
> of the individual or entity to which it is addressed. If you are not the
> intended recipient, you are not authorized to read, retain, copy, print,
> distribute or use this message. If you have received this communication in
> error, please notify the sender and delete all copies of this message.
> Persistent Systems Pvt. Ltd. does not accept any liability for virus
> infected mails.
> 
> 
> DISCLAIMER
> ==========
> This e-mail may contain privileged and confidential information which is the property of Persistent Systems Pvt. Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Pvt. Ltd. does not accept any liability for virus infected mails.




More information about the Helix-client-dev mailing list
 

Site Map   |   Terms of Use   |   Privacy Policy   |   Contact Us

Copyright © 1995-2007 RealNetworks, Inc. All rights reserved. RealNetworks and Helix are trademarks of RealNetworks.
All other trademarks or registered trademarks are the property of their respective holders.