Skip to content

Commit

Permalink
Enable playback rate control in all ramp instances
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcolvar committed Jun 12, 2024
1 parent dc7bcb0 commit 821f212
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/javascript/components/MediaObjectRamp.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ const Ramp = ({
: (<React.Fragment>
{sections_count > 0 &&
<React.Fragment>
<MediaPlayer enableFileDownload={false} />
<MediaPlayer enableFileDownload={false} enablePlaybackRate={true} />
<div className="ramp--rails-title">
{<div className="object-title" dangerouslySetInnerHTML={{ __html: title.content }} />}
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/javascript/components/PlaylistRamp.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const Ramp = ({
startCanvasId={startCanvasId}>
<Row className="ramp--all-components ramp--playlist">
<Col sm={8}>
<MediaPlayer enableFileDownload={false} />
<MediaPlayer enableFileDownload={false} enablePlaybackRate={true} />
{playlist_item_ids?.length > 0 && (
<Card className="ramp--playlist-accordion">
<Card.Header>
Expand Down
4 changes: 2 additions & 2 deletions app/javascript/components/embeds/EmbeddedRamp.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ const Ramp = ({
customErrorMessage='This embed encountered an error. Please refresh or contact an administrator.'
startCanvasId={startCanvasId}
startCanvasTime={startCanvasTime}>
<MediaPlayer enableFileDownload={false} />
<MediaPlayer enableFileDownload={false} enablePlaybackRate={true} />
</IIIFPlayer>
);
};

export default Ramp;
export default Ramp;

0 comments on commit 821f212

Please sign in to comment.