-
Notifications
You must be signed in to change notification settings - Fork 5
Upgrade Notes
This upgrade carries a lot of new components and changes to the player and is backward compatible with v2.0.0
while there are some new props added to the existing components to make them more customizable.
This version bump doesn't require any new dependencies to be installed. But v3.0.0
doesn't require to install yarn add videojs-hotkeys
as a peer dependency. This functionality is built into the Ramp code from v3.0.0
, thus after installing v3.0.0
run;
yarn remove videojs-hotkeys
- AutoAdvanceToggle component: related documentation
- MetadataDisplay component: related documentation
- MarkersDisplay component: related documentation
- SupplementalFiles component: related documentation
-
- 3 new props added to it; they are
customErrorMessage
,startCanvasId
, andstartCanvasTime
. These are explained in detail in the documentation here.
- 3 new props added to it; they are
-
- One new prop for disabling
Picture-In-Picture
in the player calledenablePIP
, this prop has a default value offalse
.
** CHANGED DEFAULT BEHAVIOR: This prop changes the default behavior of
v2.0.0
, which hadPicture-In-Picture
enabled by DEFAULT. - One new prop for disabling
-
- One new prop for providing a
manifestUrl
, which is the same Manifest url given to IIIFPlayer component. The component will parse thesupplementing
annotation for each Canvas in the Manifest and generate a transcripts list. More information is available in the documentation.
- Transcripts component used to always auto-scroll with playback when there are transcripts with time information. In
v3.0.0
the auto-scrolling can be turned on/off using the check box in the component. This is only available with transcripts with time information (e.g. WebVTT) - Indicates
machine generated
transcripts in the component. More information can be found in the documentation.
- One new prop for providing a
-
-
In v3.0.0 the component has a new look and feel. In the new look it indicates each root-level Range explicitly, displays time information, and displays a
Scroll to see more
message on the bottom of the component when there are long structures.Example from the IIIF Cookbook's Table of Content for A/V Content recipe;
In v2.0.0: In v3.0.0:
-
This upgrade includes the following changes to the existing components;
-
- Supports
Null
values for metadata fields
- Supports
-
- Removed Video.js handling of any captions embedded into HLS manifests only supporting captions/subtitles via IIIF Annotations with
supplementing
motivation (related issue) - Minor bug fixes related to Canvas transitions, and styling
- Removed Video.js handling of any captions embedded into HLS manifests only supporting captions/subtitles via IIIF Annotations with
-
- Minor bug fixes to improve usability
- Removed strict filtering when marking structure items with media fragments (related issue)
- Added support for displaying SRT files with playback synchronization
This upgrade includes a version bump to Video.js from 7.21.3
to 8.10.0
, which was waiting on a Video.js upgrade to @silvermine/videojs-quality-selector
, a plugin Ramp uses. To install the new Video.js version, run the relevant command based on the package manager used in your application;
yarn add [email protected] OR npm install [email protected]
This upgrade includes the following changes to the existing components;
-
- One new prop called
emptyManifestMessage
to provide a customized message to display when a given IIIF Manifest is empty. More information can be found under the component's documentation
- One new prop called
-
- This component has 3 new props in this version, and they are
enablePlaybackRate
,enableTitleLink
, andwithCredentials
all of which are optional props. More information can be found under the component's documentation
- For inaccessible/empty items the player now displays
previous
/next
buttons to navigate through canvases along with a given message. More information can be found under the component's documentation
- This component has 3 new props in this version, and they are
-
- Added support to display both
rights
andrequiredStatement
properties under both Manifest and Canvas. They are displayed after the respective metadata block in the same component (related issue)
- Added support to display both
-
A search within feature for all supported transcript file types was added to the Transcript component. More information can be found under the component's documentation
This upgrade includes a version bump to react
and react-dom
libraries from 17.0.1
to 18.3.1
, and major code refactor to the state management portion of the code.
None of these changes break the general functionalities and the user interface of the components.
Important: The component library can still be used with React 17. However, if you choose to upgrade to React 18; both react
and react-dom
need to be updated simultaneously to the same version.
To upgrade ReactJS in your application, please follow the instructions on the ReactJS' official upgrade guide.
This upgrade includes the following changes to the existing component(s);
-
- This component has 2 new props in this version, and they are
showAllSectionsButton
, andsectionsHeading
all of which are optional props. More information can be found in the component's documentation
- Carries a new button for each section in structures to easily collapse and expand the structural content within the section
- A new button on top of the component to collapse and expand all collapsible structural content within structures, which can be enabled via
showAllSectionsButton
prop in the component.
- This component has 2 new props in this version, and they are