An AudioStreamPlayer
has an stream
property, which is an AudioStream
object. Using that object, you can access the AudioStream
's get_length()
method.
Likewise, a VideoStreamPlayer
has a stream
property, which is a VideoStream
object. It also has an underlying get_length()
method which can be used to retrieve the stream's length