Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
H-Yeji committed Nov 1, 2024
1 parent 257ab0f commit 0d9818f
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/views/live/live/LiveSession.vue
Original file line number Diff line number Diff line change
Expand Up @@ -160,13 +160,11 @@ export default {
methods: {
async joinSession(sessionId) {
console.log("ํ™”๋ฉด๋“ค์–ด์˜ด sessionId: ", sessionId);
// this.OV = new OpenVidu("https://api.inong.shop:4443/");
this.OV = new OpenVidu("https://api.inong.shop/openvidu/");
// this.OV = new OpenVidu("https://api.inong.shop/openvidu/");
// this.OV.forceSecure = true;
// this.OV = new OpenVidu();
this.OV = new OpenVidu();
console.log(">>>>>์ƒˆ๋กœ์šด openvidu๊ฐ์ฒด: ", this.OV);
this.session = this.OV.initSession();
console.log(">>>>>initsession: ", this.session);
// ์ŠคํŠธ๋ฆผ ์ƒ์„ฑ ๋ฐ ์ œ๊ฑฐ ์ฒ˜๋ฆฌ
this.session.on("streamCreated", ({ stream }) => {
Expand All @@ -190,12 +188,8 @@ export default {
// ๋ฐฑ์—”๋“œ์—์„œ ํ† ํฐ ๋ฐ›์•„์™€์„œ ์„ธ์…˜์— ์—ฐ๊ฒฐ
let token = await this.getToken(sessionId);
console.log(">>>>>๋ฐ›์€ ํ† ํฐ ํ™•์ธ : ", token);
// Change ws:// to wss:// if needed
// if (token.startsWith("ws://")) {
// token = token.replace("ws://", "wss://");
// }
this.session.connect(token, { clientData: this.myUserName }).then(() => {
console.log("i>>>>>sPublisher: ", this.isPublisher);
console.log(">>>>>sPublisher: ", this.isPublisher);
if (this.isPublisher) {
// ๋ฐฉ์†ก์ž์ผ ๊ฒฝ์šฐ ์ž์‹ ์˜ ๋น„๋””์˜ค์™€ ์˜ค๋””์˜ค๋ฅผ ์†ก์ถœ
const publisher = this.OV.initPublisher(undefined, {
Expand Down

0 comments on commit 0d9818f

Please sign in to comment.