Bot releases are visible (Hide)
Add new methods
$channel->getFile($id);
Add option for upload file
$channel->uploadFromUrl($url, ["name"=>'myFile']);
Published by Yanlaz 2 months ago
Add method for delete replay item
$channel->deleteReplay($idReplay);
Published by nums 6 months ago
$channelName = 'test';
$evergreenName = 'test-evergreen';
$recordingId = 12;
$minute = 12; $hour = '*'; $dayOfMonth = '*'; $month = '*'; $dayOfWeek = '*'; //https://www.ibm.com/docs/en/db2oc?topic=task-unix-cron-format
$channelEvergreenResponse = $blastream->createEvergreen($channelName, $evergreenName, $recordingId, $minute, $hour, $dayOfMonth, $month, $dayOfWeek);
$channelEvergreen = $blastream->createOrGetChannel($evergreenName);
$url = $channelEvergreen->getUrl();
$evergreenId = $channelEvergreenResponse['id'];
$channelEvergreen = $blastream->createOrGetChannel($evergreenName);
$response = $channelEvergreen->updateEvergreen($evergreenId, $minute, $hour, $dayOfMonth, $month, $dayOfWeek);
$items = $channel->getEvergreenItems($evergreenId);
$type = 'Message';
$item_id = 1595;
$timecode = 12; //seconds after start
$data = json_decode('{}'); //check data of message / polls etc
$channelEvergreen = $blastream->createOrGetChannel($evergreenName);
$channelEvergreen->addEvergreenItem($evergreenId, [
'data' => $data,
'timecode' => $timecode,
'type' => $type,
'item_id' => $item_id
]);
$channelEvergreen = $blastream->createOrGetChannel($evergreenName);
$response = $channelEvergreen->updateEvergreenItem($evergreenId, [
'timecode' => $timecode,
'data' => $data,
]);
$channelEvergreen = $blastream->createOrGetChannel($evergreenName);
$response = $channelEvergreen->deleteEvergreenItem($evergreenId);
$channelEvergreen = $blastream->createOrGetChannel($evergreenName);
$response = $channelEvergreen->deleteEvergreen($evergreenId);
Published by nums 10 months ago
$blastream->getFiles();
$documentId = 4357;
$blastream->updateFile($documentId, 'the-new-name');
$documentId = 4357;
$blastream->removeFile($documentId);
Published by nums 10 months ago
fix route for uploadFromUrl
Published by nums 11 months ago
$blastream->getCurrentLiveChannels();
$blastream->getChannels();
$channel = $blastream->createOrGetChannel('my-rtmp-channel');
$channel->setMode('rtmp');
$channel = $blastream->createOrGetChannel('my-channel');
$channel->uploadFromUrl('https://.........'); //can be jpg, png, pdf, mp4, avi (any extension of video)
$channel = $blastream->createOrGetChannel('my-channel-with-banners');
$channel->setBannerModule(1);
$upload = $channel->uploadFromUrl('https://www.........png');
$bannerData = [
'name' => 'banner name',
'title' => 'My awesome banner',
'text' => 'Lorem ipsum is so cool !',
'btn' => 'KNOW MORE',
'media_url_live' => $upload['file'], //if banner live
'media_url_chat' => $upload['file'], //if banner chat (can be both)
'link' => 'https://www.mywebsite.com',
'qty_available' => 50,
'show_qty' => true,
'show_timer' => true,
'price' => 99,
'show_price' => true,
'timer' => 200,
'gong' => true
];
$channel->createBanner($bannerData);
$channel->getBanners()
$channel->getBanner($bannerId)
$channel->updateBanner($bannerId, $bannerData)
$channel->removeBanner($bannerId)
$channel->getBannerLogs()
Published by Yanlaz 11 months ago
Fix missing timeout param on initChannel
Published by nums 11 months ago
Be able to create, list, update and remove Poll:
//create
$channel = $blastream->createOrGetChannel('my-channel');
$poll = [
"choices"=>[
["id"=> 1, "value"=> "A", "color"=> "#FFA900" ],
["id"=> 2, "value"=> "B", "color"=> "#3EC59B" ]
],
"format"=> "multiple", //can be ['multiple','quiz''note,'yes-no']
"publish"=> 0,
"question"=> "Question",
"showResults"=> 1
];
$newPollData = $channel->createPool($poll);
//list
$channel->getPolls();
//update poll
$channel->updatePoll($newPollData['id'], [
"choices"=>[
["id"=> 1, "value"=> "A", "color"=> "#FFA900" ],
["id"=> 2, "value"=> "B", "color"=> "#3EC59B" ]
["id"=> 3, "value"=> "C", "color"=> "#3EC59B" ]
],
"format"=> "multiple",
"publish"=> 0,
"question"=> "Question updated",
"showResults"=> 1
]);
//remove poll
$channel->removePoll($newPollData['id']);
Published by nums about 1 year ago
add publishReplay method :
$replayId = 2596; //you can retreive it with hook url or getReplays method
$channel = $blastream->createOrGetChannel('blastream-room');
$channel->publishReplay($replayId);
Published by nums about 1 year ago
Add session stats
To retrieve stats :
$channel = $blastream->createOrGetChannel('demo');
$statsSessions = $channel->getStatSessions();
print_r($statsSessions);
$statsSession = $channel->getStatSession($statsSessions['list'][0]['id']);
print_r($statsSession);
Published by nums over 1 year ago
add simulcast feature
Published by nums over 1 year ago
Published by nums over 1 year ago
Published by nums over 1 year ago
Published by nums over 1 year ago
Published by nums almost 2 years ago
Add mode management
Published by nums over 2 years ago
$channel = $blastream->createOrGetChannel('channel-name', [
'plan' => 'pro2',
'billing' => 'hourly'
]);
$channel->updateAdvancedSettings([
'live_proto' => 'ihls' //live_proto can be webrtc, ihls and hls
]);
$channel->startLivestreaming();
$channel->stopLivestreaming();
$channel->startRecord();
$channel->stopRecord();
Published by nums over 2 years ago
add getId() for channel
echo $channel->getId();
Published by Yanlaz over 2 years ago
Fix for remove Channel
Published by nums over 2 years ago
fixed CURLOPT_POSTFIELDS in the Curl call, there was a problem with the GET method that sent CURLOPT_POSTFIELDS