3 Replies Latest reply on Sep 5, 2010 4:31 AM by jimmyoneshot

    How to Set A VideoDisplay's Width back to Default?

    jimmyoneshot Level 1

      By default a VideoDisplay component has no width and height set and if a video is set as it's source once the video plays it will adjust to the size of the video being played.


      In my app I have a click function which enlarges the video so it's height and width fill the screen eg:-


      myVideoDisplay.percentHeight = 100; myVideoDisplay.percentWidth = 100;


      Now how do I do the opposite so that a button that I've included will set the VideoDisplay's width and height back to blank i.e as it was when there was no width and height set so it just adjusts to the size of the played video?


      I've tried:-


      myVideoDisplay.percentHeight = null;


      but that doesn't seem to work.