mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-06 03:50:04 +02:00
Update
This commit is contained in:
parent
55fba5d41a
commit
e28f21d3ff
1 changed files with 3 additions and 1 deletions
|
@ -1586,13 +1586,15 @@ class API extends PluginAbstract
|
|||
$str = "{$obj->livestream['key']}";
|
||||
$encrypt = encryptString($str);
|
||||
|
||||
$url = Live::getServer();
|
||||
|
||||
$obj->livestream["users_id"] = $user->getBdId();
|
||||
$obj->livestream["live_servers_id"] = Live::getCurrentLiveServersId();
|
||||
$obj->livestream["server"] = $p->getServer($obj->livestream["live_servers_id"]) . "?p=" . $user->getPassword();
|
||||
$obj->livestream["server_v2"] = Live::getRTMPLinkWithOutKey($user->getBdId());
|
||||
// those are for the ypt mobile app
|
||||
$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["joinURL"] = Live::getLinkToLiveFromUsers_idAndLiveServer($user->getBdId(), $obj->livestream["live_servers_id"]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue