I found a player (SE player) coded through PHP, and it’s working if I use it on my mobile app using this embed link: “https://mywebsite.com/player.php?video_id=imdb_id.” I just want to ask how this PHP code is used on other video streaming APIs such as vidsrc, soap2day, 123movies, and others using an IMDB link or embed link.
<?php
////////////////////////// PLAYER SETTINGS ///////////////////////////////////////////////
$player_font = "Poppins";
$player_bg_color = "000000";
$player_font_color = "ffffff";
$player_primary_color = "34cfeb";
$player_secondary_color = "6900e0";
$player_loader = 1;
// preferred server - you can choose server that will be on top of the list and open after
// clicking play button, works only for quality >= 720p
// options are: vidlox = 7, fembed = 11, mixdrop = 12, upstream = 17, videobin = 18,
// doodstream = 21, streamtape = 25, streamsb = 26, voe = 29, ninjastream = 33
$preferred_server = 0; // paste only server number, leave 0 for no preference
$player_sources_toggle_type = 2;
//////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////
if (isset($_GET['video_id'])) {
$video_id = $_GET['video_id'];
$is_tmdb = 0;
$season = 0;
$episode = 0;
$player_url = "";
if (isset($_GET['tmdb'])) {
$is_tmdb = $_GET['tmdb'];
}
if (isset($_GET['season'])) {
$season = $_GET['season'];
} else if (isset($_GET['s'])) {
$season = $_GET['s'];
}
if (isset($_GET['episode'])) {
$episode = $_GET['episode'];
} else if (isset($_GET['e'])) {
$episode = $_GET['e'];
}
if (!empty(trim($video_id))) {
$request_url = "https://getsuperembed.link/?video_id=$video_id&tmdb=$is_tmdb&season=$season&episode=$episode&player_font=$player_font&player_bg_color=$player_bg_color&player_font_color=$player_font_color&player_primary_color=$player_primary_color&player_secondary_color=$player_secondary_color&player_loader=$player_loader&preferred_server=$preferred_server&player_sources_toggle_type=$player_sources_toggle_type";
if (function_exists('curl_version')) {
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $request_url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($curl, CURLOPT_TIMEOUT, 7);
curl_setopt($curl, CURLOPT_HEADER, false);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);
$player_url = curl_exec($curl);
curl_close($curl);
} else {
$player_url = file_get_contents($request_url);
}
if (!empty($player_url)) {
if (strpos($player_url, "https://") !== false) {
header("Location: $player_url");
} else {
echo "<span style='color:red'>$player_url</span>";
}
} else {
echo "Request server didn't respond";
}
} else {
echo "Missing video_id";
}
} else {
echo "Missing video_id";
}
?>
I tried to change this “https://getsuperembed.link/?video_id=” to this “https://vidsrc.io/embed/movie?imdb=” for example in vidsrc, but the link is not working or didn’t play on my mobile app. Is there other way to used the code in other streaming using embed link that play on my mobile app using a player from PHP code. By the way, my mobile is connected to my wordpress data that all my movies and anime can access on my mobile app.