VLC Aspect ratio

This forum is about all development around libVLC.
ElieAlAlam
New Cone
New Cone
Posts: 9
Joined: 22 Jan 2009 08:51

VLC Aspect ratio

Postby ElieAlAlam » 22 Jan 2009 09:05

Dear all,

I am using Active X control in my C# application and i am trying to change the aspect ratio of the video input dynamically after opening the movie file.
Open()
{
vlc2.playlist.items.clear();
vlc2.playlist.add(url, " ", VlcOption);
vlc2.playlist.play();
vlc2.video.aspectRatio = "16:9";
}

but this is not changing the aspect ratio.

but when the video start playing (after about 1 second) and i change the aspect ratio (after a button click). it work
onButtonClick(..)
{
vlc2.video.aspectRatio = "16:9";
}

can anyone help me on how to change the aspect ratio directly after opening the file
Thanks

ElieAlAlam
New Cone
New Cone
Posts: 9
Joined: 22 Jan 2009 08:51

Re: VLC Aspect ratio

Postby ElieAlAlam » 22 Jan 2009 09:28

Thank you
I have solved this issue by using the option parameter of Add function
string[] VlcOption = { ":aspect-ratio=16:9"};
vlc2.playlist.add(url, " ", VlcOption);
vlc2.playlist.play();

Regards,-


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 9 guests