mirror of https://github.com/Kylart/KawAnime.git
Changed videoPlayer to streaming
This commit is contained in:
parent
d56359f5d4
commit
538e5676d4
|
@ -30,7 +30,7 @@
|
|||
export default {
|
||||
computed: {
|
||||
values () {
|
||||
return this.$store.state.videoPlayer.modal
|
||||
return this.$store.state.streaming.modal
|
||||
},
|
||||
show () {
|
||||
return this.values.show
|
||||
|
@ -66,11 +66,11 @@
|
|||
},
|
||||
methods: {
|
||||
close () {
|
||||
this.$store.commit('videoPlayer/closeModal')
|
||||
this.$store.commit('streaming/closeModal')
|
||||
},
|
||||
watch (episode, i) {
|
||||
this.close()
|
||||
this.$store.commit('videoPlayer/play', {
|
||||
this.$store.commit('streaming/play', {
|
||||
show: true,
|
||||
link: {
|
||||
name: `${this.values.title} - ${episode}`,
|
||||
|
@ -84,4 +84,4 @@
|
|||
|
||||
<style lang="stylus" scoped>
|
||||
|
||||
</style>
|
||||
</style>
|
||||
|
|
|
@ -71,7 +71,7 @@
|
|||
})
|
||||
},
|
||||
watch (name) {
|
||||
this.$store.dispatch('videoPlayer/watch', {
|
||||
this.$store.dispatch('streaming/watch', {
|
||||
name
|
||||
})
|
||||
}
|
||||
|
|
|
@ -27,7 +27,7 @@ export default {
|
|||
},
|
||||
computed: {
|
||||
values () {
|
||||
return this.$store.state.videoPlayer.player
|
||||
return this.$store.state.streaming.player
|
||||
},
|
||||
show () {
|
||||
return this.values.show
|
||||
|
@ -35,7 +35,7 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
close () {
|
||||
this.$store.commit('videoPlayer/close')
|
||||
this.$store.commit('streaming/close')
|
||||
},
|
||||
async toggleFullScreen () {
|
||||
this.fullscreen = !this.fullscreen
|
||||
|
|
|
@ -141,7 +141,7 @@
|
|||
this.$log(`Requested to play ${item.name} - ${item.ep}. Sending...`)
|
||||
|
||||
if (this.inside) {
|
||||
this.$store.commit('videoPlayer/play', {
|
||||
this.$store.commit('streaming/play', {
|
||||
show: true,
|
||||
link: {
|
||||
link: item.path,
|
||||
|
|
|
@ -191,7 +191,7 @@
|
|||
: ''
|
||||
},
|
||||
watch (item) {
|
||||
this.$store.commit('videoPlayer/play', {
|
||||
this.$store.commit('streaming/play', {
|
||||
show: true,
|
||||
link: {
|
||||
link: item.magnetLink,
|
||||
|
|
Loading…
Reference in New Issue