Skip to content

Commit

Permalink
Refactor after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
Dananji committed Apr 19, 2024
1 parent c2933e7 commit 3b8d7b1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion src/components/MediaPlayer/VideoJS/VideoJSPlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,6 @@ function VideoJSPlayer({
});
if (start != end) {
// Set the end to canvas duration if it's greater for marker rendering
console.log(start, end, canvasDurationRef.current);
let markerEnd = end > canvasDurationRef.current ? canvasDurationRef.current : end;
player.markers.add([
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ class VideoJSFileDownload extends MenuButton {

createItems() {
const { options_, player_ } = this;
const { manifest, canvasIndex } = options_;
const rendering = getRenderingFiles(manifest, canvasIndex);
const files = (rendering.manifest).concat(rendering.canvas[canvasIndex]?.files);
const { files } = options_;

if (files?.length > 0) {
return files.map(function (file) {
Expand Down

0 comments on commit 3b8d7b1

Please sign in to comment.