shaka-project / shaka-player-embedded

Shaka Player in a C++ Framework
Apache License 2.0
239 stars 62 forks source link

Memory too high on iOS 13+ #146

Open weihong-xuan opened 4 years ago

weihong-xuan commented 4 years ago

[The memory of the same video (4k) is about 300M on iOS11 but about 1000M on iOS13+;I want to reduce memory,can u help me!] WechatIMG4 WechatIMG2

TheModMaker commented 4 years ago

Could you check the width/height of the video? Just because the source content is 4k doesn't mean it will always play that. It's possible that iOS 11.3 is only playing 1080p or lower which is why the memory is lower. You can see the current width/height from [player getStats]. You can also use [player getVariantTracks] to get the current tracks and look for the one that has its active field as TRUE to see which is playing. See our docs: https://google.github.io/shaka-player-embedded/interfaceShakaPlayer.html