[tvOS] issues with setVideoAspectRatio via VLCKit
Posted: 11 Apr 2019 21:33
Hi,
a while ago I posted a bug report in VLCKit (https://code.videolan.org/videolan/VLCKit/issues/180).
During playback of a Live-TV stream that changes the VAR (Video Aspect Ratio) from 16:9 to 4:3 and back to 16:9, the switch to 4:3 is done (you get the black bars on the sides), but when the stream switches back to 16:9 the VAR shown does not change - it continues playback in 4:3.
Now I just wanted to add the option in my App to force playback to either 16:9 or 4:3 (some stations send their stream with wrong VAR info - a user of my App from China pointed me to that). So I used [mediaplayer setVideAspectRatio:"x:x"] of VLCKit to set the VAR to be used while playback.
There I found, that I can switch to "4:3", but then I can't switch back to "16:9" or NULL (auto) - the value is accepted, but the change does not have any effect.
I tried with todays nightly and debug log prompted me:
In all cases the resize event arrives at the vout module, but when setting it to 4:3 it resizes display to 1440:1080 - shrinks it correctly - but then it resets the size automatically to 1920:1080 and therefore later events to set to 16:9 size are ignored, as the vout object "thinks" it is already using this size for playback.
Can you fix this issue and then make sure it gets adopted in VLCKit soon?
a while ago I posted a bug report in VLCKit (https://code.videolan.org/videolan/VLCKit/issues/180).
During playback of a Live-TV stream that changes the VAR (Video Aspect Ratio) from 16:9 to 4:3 and back to 16:9, the switch to 4:3 is done (you get the black bars on the sides), but when the stream switches back to 16:9 the VAR shown does not change - it continues playback in 4:3.
Now I just wanted to add the option in my App to force playback to either 16:9 or 4:3 (some stations send their stream with wrong VAR info - a user of my App from China pointed me to that). So I used [mediaplayer setVideAspectRatio:"x:x"] of VLCKit to set the VAR to be used while playback.
There I found, that I can switch to "4:3", but then I can't switch back to "16:9" or NULL (auto) - the value is accepted, but the change does not have any effect.
I tried with todays nightly and debug log prompted me:
Code: Select all
:19:17:12:MoviePlayerViewContr:1325: aspect: (null) --> 4:3
2019-04-11 19:17:12.071741+0200 vuplusTV[458:43109] VoutDisplayEvent 'resize' 1440x1080
2019-04-11 19:17:12.072495+0200 vuplusTV[458:43007] VoutDisplayEvent 'resize' 1920x1080
2019-04-11 19:17:12.076691+0200 vuplusTV[458:43007] VoutDisplayEvent 'resize' 1920x1080
:19:17:17:MoviePlayerViewContr:1325: aspect: 4:3 --> (null)
2019-04-11 19:17:17.922541+0200 vuplusTV[458:43109] VoutDisplayEvent 'resize' 1920x1080
:19:17:28:MoviePlayerViewContr:1325: aspect: (null) --> (null)
2019-04-11 19:17:28.032507+0200 vuplusTV[458:43109] VoutDisplayEvent 'resize' 1920x1080
:19:17:33:MoviePlayerViewContr:1325: aspect: (null) --> 16:9
:19:17:35:MoviePlayerViewContr:1325: aspect: 16:9 --> 4:3
2019-04-11 19:17:35.313281+0200 vuplusTV[458:43109] VoutDisplayEvent 'resize' 1440x1080
2019-04-11 19:17:35.314459+0200 vuplusTV[458:43007] VoutDisplayEvent 'resize' 1920x1080
2019-04-11 19:17:35.315882+0200 vuplusTV[458:43007] VoutDisplayEvent 'resize' 1920x1080
:19:17:56:MoviePlayerViewContr:1325: aspect: 4:3 --> (null)
2019-04-11 19:17:56.353231+0200 vuplusTV[458:43109] VoutDisplayEvent 'resize' 1920x1080
Can you fix this issue and then make sure it gets adopted in VLCKit soon?