![](https://secure.gravatar.com/avatar/8ea273a5ef2fd95e0c3ffee373e2b66c?rating=PG&size=50&default=https%3A%2F%2Fcdn.desk.com%2Fassets%2Funknown_user_50-8ad5644bbe6b1bd7454f2ea465f782bd.png)
JWPlayer getDuration() returns 0
I am trying to get the duration of an HLS video. From the documentation, I could understand that the getDuration() method returns the duration. But what I get is 0 as the response. I want to get the duration on loading the player(before the video starts running). Is there any solution for this?