From 34fb7317f36309e1fac5a3c76cc3ecd8a1e7e0f8 Mon Sep 17 00:00:00 2001 From: Colby Gilbert Date: Thu, 29 Aug 2024 12:06:13 -1000 Subject: [PATCH] bug: fix protocol choice to load source video --- README.md | 4 ++-- package.json | 7 +++++-- src/endpoints/ProcessVideo/service/sliceVideo.ts | 1 + 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d908df6..6748f6d 100644 --- a/README.md +++ b/README.md @@ -227,10 +227,10 @@ const DefaultResolutions = [ ## Example Front-end Usage -Any video player that can play .m3u8 files can be used. Here is a simple example using the `react-hls-player`. +Any video player that can play .m3u8 files can be used. Here is a simple example using the `react-hls-video-player`. View docs for [react-hls-video-player here.]('https://github.com/cgilly2fast/react-hls') ```tsx import React, { useRef, useState } from 'react'; -import ReactHlsPlayer from 'react-hls-player'; +import ReactHlsPlayer from 'react-hls-video-player'; const SimpleHlsPlayer = () => { const playerRef = useRef(null); diff --git a/package.json b/package.json index 84697e5..07ff938 100644 --- a/package.json +++ b/package.json @@ -25,8 +25,11 @@ "clean": "rimraf dist && rimraf dev/yarn.lock", "prepublishOnly": "yarn clean && yarn build && cd dev && yarn test" }, - "author": "colbygilbert95@gmail.com", - "license": "MIT", + "author": "Colby Gilbert", + "license": "MIT", + "bugs": { + "url": "https://github.com/cgilly2fast/plugin-adaptive-bitrate-videos/issues" + }, "peerDependencies": { "payload": "^2.0.0" }, diff --git a/src/endpoints/ProcessVideo/service/sliceVideo.ts b/src/endpoints/ProcessVideo/service/sliceVideo.ts index b1c314d..be96a20 100644 --- a/src/endpoints/ProcessVideo/service/sliceVideo.ts +++ b/src/endpoints/ProcessVideo/service/sliceVideo.ts @@ -70,6 +70,7 @@ export async function sliceVideo( const copiedVideoPath = path.join(tempOutputDir, `${path.basename(inputPath)}`) await new Promise((resolveCopy, rejectCopy) => { const file = fs.createWriteStream(copiedVideoPath) + console.log(copiedVideoPath) const protocol = copiedVideoPath.toLowerCase().startsWith('https:') ? https : http protocol.get(inputPath, resp => { resp.pipe(file)