Add new methods :
- Get current live channels of your space
$blastream->getCurrentLiveChannels();
- Get all channels of your space
$blastream->getChannels();
$channel = $blastream->createOrGetChannel('my-rtmp-channel');
$channel->setMode('rtmp');
- Upload a file from an url and automatically add to the blastream document library of the channel
$channel = $blastream->createOrGetChannel('my-channel');
$channel->uploadFromUrl('https://.........'); //can be jpg, png, pdf, mp4, avi (any extension of video)
Add banners feature :
- Create a channel and enable banner module
$channel = $blastream->createOrGetChannel('my-channel-with-banners');
$channel->setBannerModule(1);
$upload = $channel->uploadPic('banner_test.jpg');
$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->getBanner($bannerId)
$channel->updateBanner($bannerId, $bannerData)
$channel->removeBanner($bannerId)
$channel->getBannerLogs()