Jump to content
Search Community

Dynamic video resize during runtime

lola test
Moderator Tag

Recommended Posts

Im using flash to present a video and slide presentation . My stage has two flv playback whose source is a livestream of the speaker video and the presentation slides side by side. The problem is both videos are the same size and i want to be able to toggle (by dragging the corners of the video or using small button icons) between:

  • Small speaker size and Larger Slide (when the user clicks on the button or drags the corners of one video, the speaker video size scales by 1/2 and the slide video scales by 2 and both videos remain at the centre of the stage side by side uniformly)
  • Large speaker size and small Slide (when the user clicks on the button or drags the corners of one video the speaker video size scales by 2 and the slide video scales by 1/2 and both videos remain at the centre of the stage side by side uniformly)
  • Same speaker size and Slide size (when the user clicks on the button or drags the corners of one video the speaker video and the slide video become the same size and both videos remain at the centre of the stage side by side uniformly)
  • Close slide: when the presentation slide is over and the speaker is still speaking the user should be able to close the slide video. (when the user clicks on the button the slide video closes, and the speaker video size scales by 2 and relocates the the centre of the screen.)

The main issue im facing here is

  • when the videos resize the stage becomes larger than the computer screen and either or both videos crop off;
  • Additionally after scaling the videos reposition unevenly on the screen leaving lots of space between them
  • Can the buttons be placed on the flv-playback component or on the corners of the video container since putting buttons on the stage reduces the video area.

Kindly advice

Link to comment
Share on other sites

I would suggest trying AutoFitArea (http://www.greensock.com/autofitarea/) if you aren't already.

 

So you could create 5 AutoFitArea objects width differents sizes:

 

1 full size (to use when the slides are closed)

2 where both have the same size

2 where one is smaller and the other is larger

 

Then you position then where they should be, and just control the attachments of the video and slides playbacks window to the auto fit areas as the user clicks the buttons.

 

That should work for the buttons. For the dragging, should be fair more complicated and maybe this approach wont work.

  • Like 2
Link to comment
Share on other sites

Hi Lola,

 

Yes, as Hector suggested, AutoFitArea would help greatly.

You have a fairly complex request and there isn't much we can do to offer a custom solution.

 

You could try visiting a forum more geared towards general flash help: http://forums.adobe.com/community/flash/flash_general?view=discussions&start=0

 

I would suggest you simplify your question and just start with getting assistance with 1 aspect of it initially.

 

If you need help understanding how to implement any of the GreenSock tools please let us know.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...