Kani Str
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...
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.
_root.player2.height=_root
i pass .plheight and .plwidth as parameter from the html into flash.
I use Flash 8.
thanks in advance...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
can you please give me a working sample of this? i use flash 8
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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!
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
that's what I suggested,,,
please explain what exactly you want,,,, everything is possible, just it should be feasible...
Rgds
Aneesh
ASKER
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...
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...
this way, swf will be able to show the video in all size...
In simple words, resizing the embedded swf size is not possible...
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.
And open your player in another window that will matches exactly the good size.
ASKER