-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Support for posters? #62
Comments
Hello, I'm curious why this issue has been closed? I think the ability to manually set poster might be really useful for the |
This is a good idea so I'll reopen the issue, although I think something like passing an
I imagine custom YouTube posters would be quite fiddly as they are rendered inside the YT player frame? |
As of <ReactPlayer
url={url}
fileConfig={{ attributes: { poster: 'poster.jpg' } }}
/> |
Indeed great way of killing two birds in one stone, and as of youtube poster customizations, transparent iframe until the initial play of a video to let place to poster but would require a node around the iframe (or maybe pseudo elements), or maybe those new import thing, there may be a way to hack/access the iframe style it, but this become fancy. Also I wonder if it's not possible that
was due to the fact that the max res image was made from a lower video resolution (and would appear consequently crappy) or maybe youtube did not create a max res image because of this reason and was serving the max possible res... |
@denisflorkin the youtube bug you mention is its an issue with using the youtube api, which this project needs for all the event proxying. @cookpete , thanks for the post example, and thank you for making such a great player. |
Hi, @cookpete I was also interested in putting a poster in a webm file, and I follow your comment:
and it works, but it says: edit: Answering to myself:
|
@johnandblue Yeah the changes to config props are outlined in the readme. 👍 |
Fixes cookpete/react-player#62 Also serves as a solution for cookpete/react-player#59
Fixes cookpete/react-player#62 Also serves as a solution for cookpete/react-player#59
Fixes cookpete/react-player#62 Also serves as a solution for cookpete/react-player#59
Fixes cookpete/react-player#62 Also serves as a solution for cookpete/react-player#59
Fixes cookpete/react-player#62 Also serves as a solution for cookpete/react-player#59
Is there anyway to set the poster along with the url?
The player is working perfectly except that it often shows a black screen for mp4 videos and doesn't always show the max res for YouTube, so it would be great if we could optionally set the poster manually.
The text was updated successfully, but these errors were encountered: