1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-06 03:50:04 +02:00
This commit is contained in:
Daniel Neto 2024-08-23 15:39:39 -03:00
parent 55fba5d41a
commit e28f21d3ff

View file

@ -1586,13 +1586,15 @@ class API extends PluginAbstract
$str = "{$obj->livestream['key']}"; $str = "{$obj->livestream['key']}";
$encrypt = encryptString($str); $encrypt = encryptString($str);
$url = Live::getServer();
$obj->livestream["users_id"] = $user->getBdId(); $obj->livestream["users_id"] = $user->getBdId();
$obj->livestream["live_servers_id"] = Live::getCurrentLiveServersId(); $obj->livestream["live_servers_id"] = Live::getCurrentLiveServersId();
$obj->livestream["server"] = $p->getServer($obj->livestream["live_servers_id"]) . "?p=" . $user->getPassword(); $obj->livestream["server"] = $p->getServer($obj->livestream["live_servers_id"]) . "?p=" . $user->getPassword();
$obj->livestream["server_v2"] = Live::getRTMPLinkWithOutKey($user->getBdId()); $obj->livestream["server_v2"] = Live::getRTMPLinkWithOutKey($user->getBdId());
// those are for the ypt mobile app // those are for the ypt mobile app
$obj->livestream["server_v3"] = addLastSlash($url); $obj->livestream["server_v3"] = addLastSlash($url);
$obj->livestream["key_v3"] = "{$obj->livestream['key']}?s={$encrypt}"; $obj->livestream["key_v3"] = "{$obj->livestream['key_with_index']}?s={$encrypt}";
$obj->livestream["poster"] = $global['webSiteRootURL'] . $p->getPosterImage($user->getBdId(), $obj->livestream["live_servers_id"]); $obj->livestream["poster"] = $global['webSiteRootURL'] . $p->getPosterImage($user->getBdId(), $obj->livestream["live_servers_id"]);
$obj->livestream["joinURL"] = Live::getLinkToLiveFromUsers_idAndLiveServer($user->getBdId(), $obj->livestream["live_servers_id"]); $obj->livestream["joinURL"] = Live::getLinkToLiveFromUsers_idAndLiveServer($user->getBdId(), $obj->livestream["live_servers_id"]);