TvInputService.Session.OnTimeShiftGetStartPosition Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the start position for time shifting, in milliseconds since the epoch.
[Android.Runtime.Register("onTimeShiftGetStartPosition", "()J", "GetOnTimeShiftGetStartPositionHandler", ApiSince=23)]
public virtual long OnTimeShiftGetStartPosition ();
[<Android.Runtime.Register("onTimeShiftGetStartPosition", "()J", "GetOnTimeShiftGetStartPositionHandler", ApiSince=23)>]
abstract member OnTimeShiftGetStartPosition : unit -> int64
override this.OnTimeShiftGetStartPosition : unit -> int64
Returns
- Attributes
Remarks
Returns the start position for time shifting, in milliseconds since the epoch. Returns TvInputManager#TIME_SHIFT_INVALID_TIME
if the position is unknown at the moment.
The start position for time shifting indicates the earliest possible time the user can seek to. Initially this is equivalent to the time when the implementation starts recording. Later it may be adjusted because there is insufficient space or the duration of recording is limited by the implementation. The application does not allow the user to seek to a position earlier than the start position.
For playback of a recorded program initiated by #onTimeShiftPlay(Uri)
, the start position should be 0 and does not change.
Java documentation for android.media.tv.TvInputService.Session.onTimeShiftGetStartPosition()
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.