Skip navigation
Home/Support/

Forums

437 Views 2 Replies Latest reply: Feb 4, 2012 2:38 PM by eric.cancil RSS
djh88ukwb User 209 posts since
Apr 11, 2010
Currently Being Moderated

Jul 1, 2010 9:16 AM

Remove Full Screen button from s:VideoPlayer

Hello all,

 

Im streaming an audio file thru a s:VideoPlayer,  I have made it so that only the controls are visible (by making it only 25 in height)  this looks well.

 

Apart from the full screen button . .   pressing it will just return a black screen.  Is there anyway to remove this button ?

  • David_F57 Contributor 1,542 posts since
    Apr 2, 2007
    Currently Being Moderated
    1. Jul 1, 2010 5:27 PM (in response to djh88ukwb)
    Re: Remove Full Screen button from s:VideoPlayer

    hi,

     

    The quick way is to just disable the button

     

    In the creationComplete of the videoplayer
    <s:videoplayer  id="vp"  creationComplete="vp.fullScreenButton.enabled=false"/> 
    You can modify the skin but its a bit of work as the navigation bar components don't simply re-align if you remove 1 component, you need to play with the several states the skin has.
    David.

  • eric.cancil Calculating status... 3 posts since
    Mar 22, 2010
    Currently Being Moderated
    2. Feb 4, 2012 2:38 PM (in response to djh88ukwb)
    Re: Remove Full Screen button from s:VideoPlayer

    Personally, I would actually do something like this

     

    <s:VideoPlayer

                                  creationComplete="{videoDisplay.fullScreenButton.visible = videoDisplay.fullScreenButton.includeInLayout = false}"

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points