We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31fdf50 commit c2dd61dCopy full SHA for c2dd61d
1 file changed
src/services/videoService.js
@@ -7,7 +7,11 @@ import { MESSAGES } from "../config/constants.js";
7
import { bucket } from "../config/gcs.js";
8
9
const getYoutubeVideo = async (youtubeUrl) => {
10
- const videoStream = ytdl(youtubeUrl, { quality: "highestvideo" });
+ const agent = ytdl.createProxyAgent({
11
+ uri: "http://152.26.229.66:9443",
12
+ });
13
+
14
+ const videoStream = ytdl(youtubeUrl, { quality: "highestvideo", agent });
15
16
return videoStream;
17
};
0 commit comments