Closed kjoneandrei closed 6 years ago
Hi,
I ran tests on our sample apps, but couldn't reproduced the crash. Can you please provide me with a sample app that the crash can be seen. Is there any specific Media that it occurs?
Thanks.
Hi,
I was able to reproduce the crash in the playkit app with the existing video urls.
I created this pull request so you can have the exact same conditions where i recreated the crash
https://github.com/kaltura/playkit-ios-samples/pull/28
Note: You will need to slide back and forth several times, even if the video didn't finish buffering between slides
Thanks
I am the lead iOS developer from the Motor Trend team. We were also able to reproduce this crash when airplaying the Kaltura player from an iPhone 6S running iOS 11.4 to an Apple T.V. (4th generation) running tvOS 11.4.1.
To reproduce, we simply airplay a VOD from the Kaltura player to the Apple T.V. and start seeking either forward or backward. The crash happens consistently every time, and we get the exact same exception reported above (cannot seek to time INVALID).
Our team has yet to propose a solution to the crash, but I just wanted to add our voice to the issue. We will update you when we decide upon a course of action.
I should also point out that we tested this issue on two separate versions of PlayKit.
On the older version (3.1.x-dev), the crash happens the moment you start seeking during an Apple T.V. airplay session.
On the newer version (3.5.0), it takes a little longer for the crash to happen. In our testing experience, you had to seek back and forth several times before the crash would trigger.
So it's pretty clear that the library keeps getting better, but there's still an underlying issue here.
Hi Anho and Theodore,
First of all thank you. I performed a fix on branch FEM-2097. I still need to check that this fix works correctly with all kinds of medias. You are more than welcome to try it out.
Thank you! We'll give it a try.
Merged to develop. Will be included in our next release.
@x-NR-x do you know when the next release will be?
Hi @kjoneandrei ,
The version including the fix has been released, v3.5.0.
@x-NR-x thank you :), it just seems like FEM-2097.
was only merged on Jul 25, 2018
and version 3.5.0 released released this on 13 Jun
I got this dates when checking this log here https://github.com/kaltura/playkit-ios/compare/v3.5.0...develop
Prerequisites
In order to trigger the crash it is needed to enable Airplay and play a video content with Airplay while seeking back and forth from the player
Expected behavior
Video should seek to the desired position selected (seeking more than 1 time is probably needed as this seems to happen at random)
Actual behavior
Player tries to seek to position but crashes
Console output
Output in console ->
Output in crash logs ->
Note that
***** set current time to2: 1228.6467246747
is printed before callingplayer.seek(to: player.duration * Double(slider.value))
additionally tried replacing the above call toplayer.currentTime = player.duration * Double(slider.value)
but crash still occurred