# Streaming Media player set video ratio

**URL:** <https://forum.ionicframework.com/t/streaming-media-player-set-video-ratio/150763>\
**Category:** Ionic Native\
**Created:** [December 19, 2018, 6:31am UTC](https://forum.ionicframework.com/t/streaming-media-player-set-video-ratio/150763 "2018-12-19T06:31:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sahildigivive](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@sahildigivive](https://forum.ionicframework.com/u/sahildigivive)\
**Post date:** [December 19, 2018, 6:31am UTC](https://forum.ionicframework.com/t/streaming-media-player-set-video-ratio/150763/1 "2018-12-19T06:31:13Z")

</div>

Is their any event that can we use to set the video player width ?

We are playing video in [streaming media](https://ionicframework.com/docs/native/streaming-media/) player. In some case we want to set the video player ratio as per video size.  
Right now video is auto fit in the player and video show stretched .

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:03pm UTC](https://forum.ionicframework.com/t/streaming-media-player-set-video-ratio/150763/2 "2021-07-19T21:03:35Z")

</div>

Closed on July 19, 2021, 9:03pm UTC


