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

flash mode,with no controls, poster cant be show #3905

Closed
cheerful-li opened this issue Jan 3, 2017 · 1 comment
Closed

flash mode,with no controls, poster cant be show #3905

cheerful-li opened this issue Jan 3, 2017 · 1 comment

Comments

@cheerful-li
Copy link

Description

in a flash mode, we set controls to false,then no poster get shown ( it should).

I do checked the source code, in _poster.scss, see:

// Hide the poster when controls are disabled because it's clickable
// and the native poster can take over
.vjs-controls-disabled .vjs-poster {
  display: none;
}

so the reason is video element have a poster attribute,that's ok, but in flash ...

Steps to reproduce

my test code:

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>test videojs</title>
	<link rel="stylesheet" href="../dist/video-js.min.css">
	<script src="../dist/video.min.js"></script>
</head>
<body>
	<video id="my-video" width="800" poster="http://nos.netease.com/vod163/poster.png"></video>
	<script>
		videojs("my-video",{
			controls:false,
			techOrder:["flash","html5"]
		},function(){
			console.log("inited");
		});
	</script>
</body>
</html>
@gkatsev
Copy link
Member

gkatsev commented Jan 9, 2017

Looks like a duplicate of #1625. There's also some steps we can take to fix it, if you want to give it a go.

@gkatsev gkatsev closed this as completed Jan 9, 2017
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants