video view content not aspect fill

iOS, iPad, iPhone, tvOS specific usage questions
tzl
New Cone
New Cone
Posts: 1
Joined: 13 Apr 2014 20:04

video view content not aspect fill

Postby tzl » 13 Apr 2014 20:23

screenshot: http://imgur.com/W3ntQ18

I have created 2 views and each with an instance of VLCMediaPlayer

_mediaplayer = [[VLCMediaPlayer alloc] initWithOptions:@[@"--ipv4-timeout=30000",
@"--verbose=4",
@"--stats",
@"--rtsp-tcp"]];

_mediaplayer.drawable = video.videoView;


however one fills the view whereas the other does not. why? how do i force the content to aspect fill the videoview?

fkuehne
Developer
Developer
Posts: 7265
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Re: video view content not aspect fill

Postby fkuehne » 15 Apr 2014 15:11

Check how VLC for iOS does it. The media player object does have an aspect ratio setter/getter…
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net


Return to “VLC for iOS, iPadOS and Apple TV”

Who is online

Users browsing this forum: No registered users and 9 guests