Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vue 3 oven player instans update volume and full screen replays video and start again llhls #407

Open
zdimaz opened this issue Jan 10, 2024 · 4 comments

Comments

@zdimaz
Copy link

zdimaz commented Jan 10, 2024

fullscreenChangedHandler
setVolume

Vue 3 oven player instans update volume and full screen replay video llhls

<video-player
        ref="player"
        @fullscreenChanged="fullscreenChangedHandler"
/>
		const fullscreenChangedHandler = (value) => {
			isVideoFullScreen.value = value
		}
		const changeVideoVolume = () => {
			player.value?.ovenplayer.playerInstance.setVolume(videoVolume.value)
			)
		}
@zdimaz zdimaz changed the title Vue 3 oven player instans update volume and full screen replay video llhls Vue 3 oven player instans update volume and full screen replays video and start again llhls Jan 10, 2024
@SangwonOh
Copy link
Member

@zdimaz Hi!
I don't understand your issue. What action is causing the issue?

@zdimaz
Copy link
Author

zdimaz commented Jan 14, 2024

@zdimaz Hi! I don't understand your issue. What action is causing the issue?

Hi !

I have a custom player controller, when I change the sound or make a video in full screen the video restarts from the beginning, this was not the case before....

@SangwonOh
Copy link
Member

@zdimaz It seems player is initialized every time when reactive value changes. Something like isVideoFullScreen.value = value

Please make sure changing reactive value don't make vue component instant remounted.

@zdimaz
Copy link
Author

zdimaz commented Jan 19, 2024

@zdimaz It seems player is initialized every time when reactive value changes. Something like isVideoFullScreen.value = value

Please make sure changing reactive value don't make vue component instant remounted.

How i can change this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants