Skip to content

Releases: blastream/blastream-php-sdk

1.0.37

Choose a tag to compare

@nums nums released this 23 Apr 08:19
bbc520e

Added the ability to pass parameters to the "getReplays" method:

$replays = $channel->getReplays([
    'withHlsUrl' => 1,
    'id' => 4312,
]);

1.0.36

Choose a tag to compare

@Yanlaz Yanlaz released this 09 Dec 16:02
  • Add $channel->unpublishReplay($replayId) method
  • Add $channel->getChatHistory() method

1.0.35

Choose a tag to compare

@nums nums released this 21 Nov 10:10
787ac63
  • Add $channel->getCustom() method

1.0.34-alpha

1.0.34-alpha Pre-release
Pre-release

Choose a tag to compare

@Yanlaz Yanlaz released this 17 Sep 07:20

Add new methods

  • Get a file by id
    $channel->getFile($id);

Add option for upload file

  • Set a display name for uploadFromUrl
    $channel->uploadFromUrl($url, ["name"=>'myFile']);

1.0.33-alpha

1.0.33-alpha Pre-release
Pre-release

Choose a tag to compare

@Yanlaz Yanlaz released this 19 Aug 15:01

Add method for delete replay item

$channel->deleteReplay($idReplay);

1.0.32-alpha

1.0.32-alpha Pre-release
Pre-release

Choose a tag to compare

@nums nums released this 10 Apr 14:38
9e121df

Add new methods :

  • Create evergreen from a webinar recording
$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();
  • Update evergreen scheduling
$evergreenId = $channelEvergreenResponse['id'];
$channelEvergreen = $blastream->createOrGetChannel($evergreenName);
$response = $channelEvergreen->updateEvergreen($evergreenId, $minute, $hour, $dayOfMonth, $month, $dayOfWeek);
  • Get all items
$items = $channel->getEvergreenItems($evergreenId);
  • Create an item
$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
]);
  • Update an item
$channelEvergreen = $blastream->createOrGetChannel($evergreenName);
$response = $channelEvergreen->updateEvergreenItem($evergreenId, [
    'timecode' => $timecode,
    'data' => $data,
]);
  • Delete an item
$channelEvergreen = $blastream->createOrGetChannel($evergreenName);
$response = $channelEvergreen->deleteEvergreenItem($evergreenId);
  • Delete an evergreen
$channelEvergreen = $blastream->createOrGetChannel($evergreenName);
$response = $channelEvergreen->deleteEvergreen($evergreenId);

1.0.31

Choose a tag to compare

@nums nums released this 03 Jan 09:27
58d8d80

Add new methods :

  • Get list of documents
$blastream->getFiles();
  • Update name of document
$documentId = 4357;
$blastream->updateFile($documentId, 'the-new-name');
  • Remove document
$documentId = 4357;
$blastream->removeFile($documentId);

1.0.30

Choose a tag to compare

@nums nums released this 02 Jan 11:25
a118309

fix route for uploadFromUrl

1.0.29

Choose a tag to compare

@nums nums released this 28 Nov 18:53
a92f3ba

Add new methods :

  • Get current live channels of your space
$blastream->getCurrentLiveChannels();
  • Get all channels of your space
$blastream->getChannels();
  • Create a RTMP channel
$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);
  • Create your first banner
$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);
  • Get all banners
$channel->getBanners()
  • Get banner
$channel->getBanner($bannerId)
  • Update banner
$channel->updateBanner($bannerId, $bannerData)
  • Remove banner
$channel->removeBanner($bannerId)
  • Get banners logs
$channel->getBannerLogs()

1.0.28

Choose a tag to compare

@Yanlaz Yanlaz released this 13 Nov 14:11

Fix missing timeout param on initChannel