flowkey / UIKit-cross-platform

Cross-platform Swift implementation of UIKit, mostly for Android
MIT License
597 stars 40 forks source link

implement durationInMs property on AVPlayerItem #233

Closed michaelknoch closed 6 years ago

michaelknoch commented 6 years ago

Type of change: feature

Motivation

On iOS and Mac you can access duration of a playable item via avplayerItem.duration which returns duration as CoreMedia.CMTime. I thought it would be quite handy to have a similar duration getter without implementing a polyfill for CMTime.

Please check if the PR fulfills these requirements