# How to get video resolution?

**URL:** <https://community.bitmovin.com/t/how-to-get-video-resolution/3596>\
**Category:** Knowledge\
**Tags:** bitmovin-player, ios, bitmovin\
**Created:** [March 20, 2025, 1:46pm UTC](https://community.bitmovin.com/t/how-to-get-video-resolution/3596 "2025-03-20T13:46:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ilya.khymych](https://avatars.discourse-cdn.com/v4/letter/i/f475e1/32.png) [@ilya.khymych](https://community.bitmovin.com/u/ilya.khymych)\
**Post date:** [March 20, 2025, 1:46pm UTC](https://community.bitmovin.com/t/how-to-get-video-resolution/3596/1 "2025-03-20T13:46:26Z")

</div>

So the as per the title how to get video resolution while using SwiftUI and UIKit player view?

---

<div class="post-metadata">

**Author:** ![daniel](https://sea1.discourse-cdn.com/flex015/user_avatar/community.bitmovin.com/daniel/32/121_2.png) [@daniel](https://community.bitmovin.com/u/daniel)\
**Post date:** [March 26, 2025, 9:52am UTC](https://community.bitmovin.com/t/how-to-get-video-resolution/3596/2 "2025-03-26T09:52:34Z")

</div>

You can subscribe to the `onVideoPlaybackQualityChanged` listener of the `Source` to get the currently displayed video quality, which should include `width` and `height`, at least if those values are specified in the HLS playlist.

See our documentation for details:

> **[SourceListener Protocol Reference](https://cdn.bitmovin.com/player/ios/3/docs/Protocols/SourceListener.html#/c:%40M%40BitmovinPlayerCore%40objc(pl)BMPSourceListener(im)onVideoPlaybackQualityChanged:source:)**

---

<div class="post-metadata">

**Author:** ![ilya.khymych](https://avatars.discourse-cdn.com/v4/letter/i/f475e1/32.png) [@ilya.khymych](https://community.bitmovin.com/u/ilya.khymych)\
**Post date:** [March 26, 2025, 1:10pm UTC](https://community.bitmovin.com/t/how-to-get-video-resolution/3596/3 "2025-03-26T13:10:59Z")

</div>

This work only for streams, but what about VOD (when source is mp4 file for example)?

---

<div class="post-metadata">

**Author:** ![daniel](https://sea1.discourse-cdn.com/flex015/user_avatar/community.bitmovin.com/daniel/32/121_2.png) [@daniel](https://community.bitmovin.com/u/daniel)\
**Post date:** [March 28, 2025, 8:46pm UTC](https://community.bitmovin.com/t/how-to-get-video-resolution/3596/4 "2025-03-28T20:46:44Z")

</div>

I see. I don’t think this is supported for progressive mp4 files. As mp4 files have a single, fixed quality and resolution, there is typically not much value in the player providing that anyway.  
What’s your use case for this?
