Link to home
Start Free TrialLog in
Avatar of Kani Str
Kani StrFlag for India

asked on

Resize flash flv player component

I would like to resize the flash flv player on my page based on the video size,
my aim is to resize the player to match the video width and height so that the user can view the video in actual size...

i think i can do this by changing the player height and width but it's not working for me... it resizes but not correctly...

is there any other way to show the video in actual size?

currently i  am trying with something like this...

_root.player2.width=_root.plwidth;
_root.player2.height=_root.plheight;

i pass .plheight and .plwidth as parameter from the html into flash.

I use Flash 8.

thanks in advance...


ASKER CERTIFIED SOLUTION
Avatar of Dushan Silva
Dushan Silva
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Kani Str

ASKER

This doesn't change the size accurately, it set the size correctly if we send 500 400 etc, but i need to send 452,253 etc , please help
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
can you please give me a working sample of this? i use flash 8
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
almost there!
it resized the player... but not quite i wanted. Example:

I have my document size 200x200 and i would like to see a video of size 400x300

now the flash resizes the flvplay back automatically,,  problem arise if the document is smaller than that.
I mean the video doesn't display fully.. please try with a sample flv but have a smaller flash document size than the video.

we are almost there!
in your query, u have request the solution to play the video in its original size,
that's what I suggested,,,


please explain what exactly you want,,,, everything is possible, just it should be feasible...

Rgds
Aneesh
i have 10 video files all are of different sizes, say 100x200, 100x100, 800x600 etc...

i like to pass the video name dynamically and show the video in acutual size, this page will not have anything but the player. so i have created a flash .fla file with 100x100 width and height. now i need this to resize it self (document and the flv player inside to show the video in acutual size), in your idea it resizes the flv player fine when i set that auto_resize property... but the document is not show the video in actual size if the video size if larger than the flv video size... Hope this clears you. please let me know if you need more details...
my suggest is, create the FLA with the size that matches the largest video size..
this way, swf will be able to show the video in all size...

In simple words, resizing the embedded swf size is not possible...
Avatar of Guic
Guic

I suggest to have a xml list with the name and the size of the videos.
And open your player in another window that will matches exactly the good size.