CMTime is a structure containing value, time frames, flags, and era. That way you can't just "distinguish" it to a floating point value.
You can use this value by writing directly
sliderOutlet.value = Float(player.currentTime().value)
But this will only give the value of the player, which is in milliseconds. To get the value in seconds, you use this:
sliderOutlet.value = Float(CMTimeGetSeconds(player.currentTime()))
Remember that this will also not be the correct way that you should have the value of your slider.
source share