Changed videoPlayer to streaming

This commit is contained in:
Kylart 2018-04-29 15:04:04 +02:00
parent d56359f5d4
commit 538e5676d4
5 changed files with 9 additions and 9 deletions

View File

@ -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>

View File

@ -71,7 +71,7 @@
})
},
watch (name) {
this.$store.dispatch('videoPlayer/watch', {
this.$store.dispatch('streaming/watch', {
name
})
}

View File

@ -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

View File

@ -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,

View File

@ -191,7 +191,7 @@
: ''
},
watch (item) {
this.$store.commit('videoPlayer/play', {
this.$store.commit('streaming/play', {
show: true,
link: {
link: item.magnetLink,