requireTrack

Returns the passedTrack or the currently provided TrackReferenceLocal.

Throws

if passedTrack is null and no TrackReferenceLocal is available (e.g. not inside a TrackReferenceScope).