This commit allows for starting a video from a particular location. If seek() is called before setting a url, the playerItem is not set yet and therefore seek() is ignored. If waiting for the player item to be ready to start seeking, the video will glitch seek. This is because setting the url on the Player results in auto play from the beginning. By the time the seek command can be executed, the video has already started playing from the beginning, resulting in it glitching to the desired location. The amount of glitch varies, but on a bad connection, seek can take a few second to buffer up the video at the desired location. This fix will store the seek value should the player item not be ready, then going to the correct location in the video when the player is ready.
0378667Brian Telintelo110mo ago