Skip to content

Commit

Permalink
refactor(webapp): add npm @binbat/whip-whep
Browse files Browse the repository at this point in the history
remove lib/{whip.js,whep.js}
  • Loading branch information
a-wing committed Dec 24, 2023
1 parent 9e5b342 commit 03c7aac
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 845 deletions.
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"preview": "vite preview"
},
"dependencies": {
"@binbat/whip-whep": "^1.0.8",
"@types/lodash.uniq": "^4.5.7",
"copy-to-clipboard": "^3.3.3",
"jotai": "^2.4.3",
Expand Down
2 changes: 1 addition & 1 deletion webapp/components/player/whep-player.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useEffect, useRef, useState } from 'react'
import Player from './player'
import { UserStream, UserStatus } from '../../store/atom'
import WHEPClient from '../../lib/whep'
import { WHEPClient } from '@binbat/whip-whep/whep'

export default function WhepPlayer(props: { streamId: string, status: UserStatus, width: string }) {
const refEnabled = useRef(false)
Expand Down
2 changes: 1 addition & 1 deletion webapp/components/player/whip-player.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
currentDeviceVideoAtom,
} from '../../store/atom'
import Player from './player'
import WHIPClient from '../../lib/whip'
import { WHIPClient } from '@binbat/whip-whep/whip'

export default function WhipPlayer(props: { streamId: string, width: string }) {
const refEnabled = useRef(false)
Expand Down
Loading

0 comments on commit 03c7aac

Please sign in to comment.