mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
move stream player to live
page
This commit is contained in:
parent
6607f182ff
commit
59b6a205af
@ -40,8 +40,7 @@ export default class StreamViewer extends React.Component {
|
||||
switchProtocol: this.switchProtocol,
|
||||
}
|
||||
|
||||
const query = new URLSearchParams(window.location.search)
|
||||
const requestedUsername = query.get("key")
|
||||
const requestedUsername = this.props.match.params.key
|
||||
|
||||
const source = `${streamsSource}/${requestedUsername}`
|
||||
const player = new Plyr("#player", {
|
||||
@ -59,7 +58,7 @@ export default class StreamViewer extends React.Component {
|
||||
await this.loadWithProtocol[this.state.loadedProtocol]()
|
||||
|
||||
// make the interface a bit confortable for a video player
|
||||
app.style.applyVariant("dark")
|
||||
//app.style.applyVariant("dark")
|
||||
|
||||
app.eventBus.emit("toogleCompactMode", true)
|
||||
|
@ -48,7 +48,7 @@ export default class Streams extends React.Component {
|
||||
}
|
||||
|
||||
onClickItem = (item) => {
|
||||
window.app.setLocation(`/streams/viewer?key=${item}`)
|
||||
window.app.setLocation(`/live/${item}`)
|
||||
}
|
||||
|
||||
renderListItem = (stream) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user