Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • VLCKit VLCKit
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare
  • Issues 110
    • Issues 110
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 8
    • Merge requests 8
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • VideoLANVideoLAN
  • VLCKitVLCKit
  • Issues
  • #284
Closed
Open
Issue created Jul 03, 2019 by Philipp Wallisch@wallisch

videoSize doesn't always report the actual video size

Generally, what I'm trying to do is removing the black letterboxing from video views. As it is not possible to change the background color of the VLCOpenGLES2VideoView to transparent, i'm forced to crop the view manually.

Therefore, i currently fetch the videoSize property and then change the frame of the UIView drawable accordingly. This works for many video streams, but on some streams, videoSize reports CGSize(0,0), despite the VLCOpenGLES2VideoView knowing the video dimensions exactly (_voutDisplay->source->i_width, _voutDisplay->source->i_height). I can see this in the debugger, but of course cannot access this from the code.

Example public RTSP stream : rtsp://stream-5gw.1000eyes.de/rtplive/cgnC8409D.stream

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking

VideoLAN code repository instance