Closed vibhi19 closed 6 years ago
I think what @vibhi19 is referring to is setting up Plyr on an already loaded embed <iframe>
. It's something I've considered doing but won't be part of v3. I like it though as it's true progressive enhancement as the HTML5 player is.
Yes im referring to is setting up Plyr on an already loaded embed
HEY i have a lot of video in WordPress embed through iframe can You Provide code which Will convert those iframe to Support player i really want to use this player
Did you read my comment? It's not supported yet. It's already in the backlog and coming.
Hi Wordpress Plugin work But i create problem In mobile devices so Im Thinking you can provide some code like This i have one but its not working here
` // Iframe and find Autoplay $YTiframe = '/<iframe.?(width="[0-9]")?.?(height="[0-9]")?.?src=".?youtube.com\/embed\/(\w-?\w).(autoplay=1)?.?<\/iframe>/i';
$YTreplace = '<div data-type="youtube" data-video-id="$3">';
$content = preg_replace(
$YTiframe, $YTreplace, $content
`);``
can You take a look and Tell me why its not working
// Iframe and find Autoplay
$YTiframe = '/<iframe.*?(width="[0-9]*")?\.?(height="[0-9]*")?\.*?src=".*?youtube\.com\/embed\/(\w*\-?\w*).(autoplay=1)?.*?<\/iframe>/i';
$YTreplace = '<div data-type="youtube" data-video-id="$3">';
$content = preg_replace(
$YTiframe, $YTreplace, $content
);
I'll update once it's supported 👍
What You mean
I Tried but its not working for me
Are you reading my comments or just brushing over them.
Hope that clears it up for you
bro I read It i totally understand that you update this in next update but right now but if You can Help me Replace youtube iframe with Plyr plater That will be Helpful Any code which can do that please Im using wordpress
You could try the WordPress plugin as listed in the docs
I did but its Play button doesnt work in Mobile device You have click on full screen then click on play
That's a limitation of iOS. It's addressed in v3 but I'm not finished with it yet.
No im talking about android Phone i dont use ios
and if i use Script then the play button work pefectly
Well thanks for Your Time What i can do Waiting for Update
I'll keep this issue open as a reference until I've added support.
Ok
Issue Solved Updated The css and Js Files in Plugin and Boom hehehe
https://drive.google.com/open?id=16-X-79UIjzusZ1lM5vBH5Tgp7dLWO7wy
Closing this one as I think it's fixed but feel free to re-open if not solved in v3 👍
Hi Thanks for awesome Player
Can You provide code for player automatically works on video embedded through YouTube Iframe on post