Navigation
Unreal Engine C++ API Reference > Runtime > Media
References
Module | Media |
Header | /Engine/Source/Runtime/Media/Public/IMediaTimeSource.h |
Include | #include "IMediaTimeSource.h" |
Syntax
class FMediaTimeStamp
Remarks
Timestamp value for media playback
- Time: Time value
- SequenceIndex Sequence that is current for this time value
Within a single sequence time values will increase or decrease monotonically. A new sequence index is generated on each event that causes the time to no longer be monotonic. (e.g. seek or loop) A sequence index does not offer any information about the ordering of the time stamps on the timeline. Time values are comparable between all timestamps from a single playback, though, one needs to be careful to consider non-monotonic behavior if the sequence indices are not identical.
Sequence indices can very much offer ordering information as far as playback progression is concerned. Higher indices are also later in playback. (even if time values may be smaller: e.g. looping)
All comparison operators of this class will operate to indicate ordering relative to playback, not position on the timeline!
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
int64 | SequenceIndex | |
![]() |
FTimespan | Time |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
|||
![]() |
FMediaTimeStamp
(
const FTimespan& InTime |
||
![]() |
FMediaTimeStamp
(
const FTimespan& InTime, |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
int64 | AdjustPrimaryIndex
(
int64 InSequenceIndex, |
|
![]() ![]() |
int64 | AdjustSecondaryIndex
(
int64 InSequenceIndex, |
|
![]() ![]() |
int32 | GetPrimaryIndex
(
int64 InSequenceIndex |
|
![]() ![]() |
int32 | GetSecondaryIndex
(
int64 InSequenceIndex |
|
![]() |
void | Invalidate () |
|
![]() ![]() |
bool | IsRelative () |
|
![]() ![]() |
bool | IsValid () |
|
![]() ![]() |
int64 | MakeSequenceIndex
(
int32 PrimaryIndex, |
Operators
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
FMediaTimeStamp | operator-
(
const FMediaTimeStamp& Other |
|
![]() ![]() |
FMediaTimeStamp | ||
![]() ![]() |
FMediaTimeStamp | ||
![]() |
FMediaTimeStamp & | operator+=
(
const FTimespan& Other |
|
![]() ![]() |
bool | operator<
(
const FMediaTimeStamp& Other |
|
![]() ![]() |
bool | operator<=
(
const FMediaTimeStamp& Other |
|
![]() |
FMediaTimeStamp & | operator-=
(
const FTimespan& Other |
|
![]() |
FMediaTimeStamp & | operator-=
(
const FMediaTimeStamp& Other |
|
![]() ![]() |
bool | operator==
(
const FMediaTimeStamp& Other |
|
![]() ![]() |
bool | operator>
(
const FMediaTimeStamp& Other |
|
![]() ![]() |
bool | operator>=
(
const FMediaTimeStamp& Other |