Skip to content
This repository was archived by the owner on Oct 2, 2022. It is now read-only.

update urls #267

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ const App = () => {
Http.post("/api/stopStream", {
postId: streamPostId,
contentId: streamContentId,
endUrl: `https://webtorrent.shock.network/api/stream/end`,
urlForMagnet: `https://webtorrent.shock.network/api/stream/torrent/${streamUserToken}`,
endUrl: `https://stream.shock.network/api/stream/end`,
urlForMagnet: `https://stream.shock.network/api/stream/torrent/${streamUserToken}`,
obsToken: streamLiveToken
});
removeStream()(dispatch);
Expand Down
2 changes: 0 additions & 2 deletions src/common/Post/components/Stream/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import "./css/index.scoped.css";
import videojs from "video.js";
import Http from "../../../../utils/Http";

const REACT_APP_SL_SEED_URI = "https://webtorrent.shock.network";
const STREAM_STATUS_URI = `${REACT_APP_SL_SEED_URI}/rtmpapi/api/streams/live`;

const Stream = ({
id,
Expand Down
4 changes: 2 additions & 2 deletions src/pages/Profile/GoLive/GoLive.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,8 @@ const GoLive = () => {
Http.post("/api/stopStream",{
postId:streamPostId,
contentId:streamContentId,
endUrl:`https://webtorrent.shock.network/api/stream/end`,
urlForMagnet:`https://webtorrent.shock.network/api/stream/torrent/${streamUserToken}`,
endUrl:`https://stream.shock.network/api/stream/end`,
urlForMagnet:`https://stream.shock.network/api/stream/torrent/${streamUserToken}`,
obsToken:streamLiveToken
})
removeStream()(dispatch);
Expand Down