useVideoPlaybackState(): String (enum)
Returns the video playback state of the composition. You can import PlaybackStateType from the same file to get the enum values:
Return type
| Type | Description |
|---|---|
String | 'playing' or 'postroll' (PlaybackStateType.PLAYING or PlaybackStateType.POSTROLL). When the playback state evalutes to 'playing', the composition is currently playing. When it evaluates to 'postroll', the composition is transitioning to a stop state. |
'postroll'. The postroll will be at least 300ms long, allowing you to also render an optional fade.