How to get image from youtube and vimeo embedded url?
This tutorial is for getting the image from YouTube and Vimeo embedded URLs using the PHP code without any 3rd party tools. You can just enter the embedded URL in the below code and get an HD image from these two platforms.
Step 1)
Just put this code in your PHP file where you want to get the YouTube and Vimeo embedded URL image in high resolution.
$url2 = "Your youtube and vimeo embedded url here";
$parsed = parse_url($url2);
$hostname = $parsed['host'];
$path = $parsed['path'];
if(!empty($hostname)){
if($hostname=='www.youtube.com' || $hostname=='youtube.com'){
preg_match('%(?:youtube(?:-nocookie)?\.com/(?:[^/]+/.+/|(?:v|e(?:mbed)?)/|.*[?&]v=)|youtu\.be/)([^"&?/ ]{11})%i', $url2, $match);
$youtube_id = $match[1];
$videoID = substr($youtube_id,0,11);
$video_image_src = "https://i.ytimg.com/vi/".$videoID."/maxresdefault.jpg";
$video_image_href = "https://www.youtube.com/embed/".$videoID;
}else if($hostname=='player.vimeo.com'){
preg_match("/vimeo\.com\/(\w+\s*\/?)*([0-9]+)*$/i", $url2, $output_array);
$vimdeoIDInt = intval($output_array[1]);
$vimeo = unserialize(file_get_contents("http://vimeo.com/api/v2/video/$vimdeoIDInt.php"));
$small = $vimeo[0]['thumbnail_small'];
$medium = $vimeo[0]['thumbnail_medium'];
$large = $vimeo[0]['thumbnail_large'];
$video_image_src = $large;
$video_image_href = "https://player.vimeo.com/video/".$vimdeoIDInt;
}
echo $video_image_href;
}
I’ve been playing on Craybet for about six weeks or so and figured I’d share what I think because there’s not many posts about them in this forum. Registered on a whim and the whole process was like a couple minutes. Starting deposit was ten bucks which is normal for US-facing sites. They threw in a sign-up bonus — matched my first deposit 100% up to 500 and 50 free spins on Gates of Olympus. Playthrough requirements were 35 times the bonus which isn’t amazing but not the worst I’ve seen.
Game selection is decent honestly. There’s titles from Pragmatic Play, Evolution, and Play’n GO — meaning Book of Dead, Starburst, all the popular ones. Somewhere around 1500-2000 slots including table games. The live dealer section is powered by Evolution which is quality — played some blackjack and Crazy Time with real dealers and zero lag issues.
One thing I wasn’t thrilled about was how long cashouts take. Withdrew via Visa and waited about 48 hours the first time. Once you’re verified though it was faster. You can use credit cards, e-wallets like Skrill and Neteller, and BTC which is most bases. I’d check out their current offers over at svnewtech if you’re interested.
Using Craybet on my phone was surprisingly good. There’s no app to download though the mobile site is responsive and slots and live games work no problem. I played Book of Dead in bed and no performance issues.
Customer service on Craybet has been alright — there’s a chat widget and someone actually responds in under five minutes when I’ve used it. Had to ask about a bonus that didn’t credit and got it fixed pretty quickly. Licensing is Curacao-based from what I can tell which is typical of platforms like this. Wouldn’t say it’s perfect — wish they had more payment options — but as a daily player I’m still using it.
Been using Craybet for about six weeks or so and thought I’d throw out what I think because there’s not much discussion about them in this forum. Signed up randomly one night and the whole process took maybe two minutes. Minimum deposit is ten bucks which is pretty standard. They threw in a sign-up bonus — matched my first deposit 100% up to 500 plus 50 free spins on Sweet Bonanza. Rollover is 35x which could be lower but it’s manageable.
Game selection is decent honestly. They’ve got games from Pragmatic Play, Evolution, and Microgaming — so like Book of Dead, Starburst, that kind of thing. Probably close to 2000 games total if you count everything. Live dealer stuff is powered by Evolution and it’s legit — played some baccarat and Crazy Time with real dealers and zero lag issues.
Tbh the thing that kinda bugged me was withdrawal times. Withdrew via Bitcoin and it took like a day and a half for my first withdrawal. Second time around it dropped to like 24 hours. You can use credit cards, Skrill, Neteller, and BTC which is pretty much everything you’d want. I’d look at their current offers at CrayBet before you sign up.
Using Craybet on my phone worked better than expected. No dedicated app but the browser version runs well and slots and live games work no problem. I played a few sessions on my commute and no problems.
Support at Craybet has been okay — they have live chat that actually connects within a few minutes usually. Had to ask about my verification docs and got it fixed pretty quickly. Not sure about Curacao licensed and that’s standard for offshore casinos. Wouldn’t say it’s perfect — promo codes seem rare — but as a daily player I’m still using it.
Been messing around on Craybet for about a couple months and thought I’d throw out what I think since I haven’t seen many posts about it around here. Signed up on a whim and registration took maybe 90 seconds. Starting deposit was $10 and that’s pretty standard. I grabbed a sign-up bonus — 100% up to $500 and 50 free spins on Sweet Bonanza. Rollover is 35x and that isn’t amazing but not the worst I’ve seen.
Game selection is honestly pretty solid. There’s stuff from Pragmatic Play, Evolution, plus Microgaming — meaning Book of Dead, Gonzo’s Quest, the usual heavy hitters. Probably close to 2000 games when you add it all up. Live dealer stuff is powered by Evolution and it’s legit — tried blackjack and Crazy Time with actual croupiers and it worked great.
One thing that annoyed me a little was payout speed. I used Visa and it took almost two days the first time. After that though things sped up. You can use Visa, Mastercard, Skrill, Neteller, and crypto so that covers most bases. You can check out what they’ve got going on at CrayBet if you’re interested.
Mobile experience on Craybet on my phone is actually smooth. No dedicated app but the mobile site runs well and slots and live games work without issues. Was playing some slots on my commute and no lag or glitches.
Support at Craybet has been alright — they have live chat that gets you a person within a few minutes when I’ve used it. Had to ask about my verification docs and they sorted it within hours. Not sure about Curacao licensed which is typical of offshore casinos. Not everything is amazing — wish they had more payment options — but as a daily player it does the job for me.