-
Notifications
You must be signed in to change notification settings - Fork 5
AutoAdvanceToggle Component
This component provides the ability to turn on/off auto-advance from a Canvas to the next when viewing a IIIF Manifest. It reads the behavior
property at the Manifest-level, and then parses and stores the given values to a Boolean flag within Ramp's state management.
When behavior is not specified in the Manifest, this is set to not auto-advance as the default temporal behavior due to not specified being the same as no-auto-advance per the IIIF Presentation 3.0 specification.
-
label (String): this has a default value of
'Autoplay
and is not required. This allows to customize the text of the label appears next to the auto advance toggle. -
showLabel (Boolean): this has a default value of
true
and is not required. This allows to show/hide the label associated with the auto advance toggle.
import {
IIIFPlayer,
AutoAdvanceToggle
} from '@samvera/ramp';
import 'video.js/dist/video-js.css';
import '@samvera/ramp/dist/ramp.css';
<IIIFPlayer manifestUrl=manifestUrl manifest=manifest>
<AutoAdvanceToggle />
</IIIFPlayer>
When auto advance is toggled on:
When auto advance is toggled off: