setTimeShift method

  1. @override
Future<void> setTimeShift(
  1. double timeShift
)

Shifts the playback time to the given offset in seconds from the live edge. Has to be within maxTimeShift (which is a negative value) and 0. The offset can be positive and is then interpreted as a UNIX timestamp in seconds. The value has to be within the time shift window, as specified by maxTimeShift. Only applicable for live streams. For VOD, use seek.

Implementation

@override
Future<void> setTimeShift(double timeShift) async =>
    _playerPlatformInterface.setTimeShift(timeShift);