Download the PHP package vin7ent/pili-sdk-php.v2 without Composer
On this page you can find all versions of the php package vin7ent/pili-sdk-php.v2. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package pili-sdk-php.v2
Pili Streaming Cloud Server-Side Library For PHP
Features
- URL
- [x] RTMP推流地址: RTMPPublishURL(domain, hub, streamKey, mac, expireAfterSeconds)
- [x] RTMP直播地址: RTMPPlayURL(domain, hub, streamKey)
- [x] HLS直播地址: HLSPlayURL(domain, hub, streamKey)
- [x] HDL直播地址: HDLPlayURL(domain, hub, streamKey)
- [x] 截图直播地址: SnapshotPlayURL(domain, hub, streamKey)
- Hub
- [x] 创建流: hub->create(streamKey)
- [x] 获得流: hub->stream(streamKey)
- [x] 列出流: hub->listLiveStreams(prefix, limit, marker)
- [x] 列出正在直播的流: hub->listStreams(prefix, limit, marker)
- Stream
- [x] 流信息: stream->info()
- [x] 启用流: stream->enable()
- [x] 禁用流: stream->disable()
- [x] 查询直播状态: stream->liveStatus()
- [x] 保存直播回放: stream->save(start, end)
- [x] 查询直播历史: stream->historyActivity(start, end)
- Room
- [x] 创建房间: room->createRoom()
- [x] 查看房间: room->getRoom()
- [x] 删除房间: room->deleteRoom()
- [x] 生成房间token: room->roomToken()
Contents
- Installation
- Usage
- Configuration
- URL
- Generate RTMP publish URL
- Generate RTMP play URL
- Generate HLS play URL
- Generate HDL play URL
- Generate snapshot play URL
- Hub
- Instantiate a pili hub object
- Create a new stream
- Get a stream
- List streams
- List live streams
- Stream
- Get stream info
- Disable a stream
- Enable a stream
- Get stream live status
- Get stream history activity
- Save stream live playback
- Room
- Create a room
- Get a room
- Delete a room
- Generate a room token
Installation
Requirements
- PHP >= 5.3.0
Install with Composer
If you're using Composer to manage dependencies, you can add pili-sdk-php with it.
You can add Pili as a dependency using the composer.phar
CLI:
Alternatively, you can specify pili-sdk-php as a dependency in your project's
existing composer.json
file:
After installing, you need to require Composer's autoloader:
You can find out more on how to install Composer, configure autoloading, and other best-practices for defining dependencies at http://getcomposer.org.
Install source from GitHub
The pili-sdk-php
requires PHP v5.3+
. Download the PHP library from Github, and require in your script like so:
To install the source code:
And include it in your scripts:
Install source from zip/tarball
Alternatively, you can fetch a tarball or zipball:
And include it in your scripts:
Usage
Configuration
Url
Generate RTMP publish URL
Generate RTMP play URL
Generate HLS play URL
Generate HDL play URL
Generate snapshot play URL
Hub
Instantiate a pili hub object
Create a new stream
Get a stream
List streams
List live streams
Stream
Get stream info
Disable a stream
Enable a stream
Get stream live status
Get stream history activity
Save stream live playback
Room
Create a room
Get a room
Delete a room
Generate a room token
History
- 2.0.0
- pili.v2
-
1.5.4
- Use $stream->saveAs in $stream->hlsPlaybackUrls
-
1.5.3
- Update $stream->disable($disabledTill)
-
1.5.2
- Update $stream->rtmpPublishUrl()
- 1.5.1
- Update API
- $hub->listStreams($marker=NULL, $limit=NULL, $title_prefix=NULL, $status=NULL)
- $stream->saveAs($name, $format=NULL, $start=NULL, $end=NULL, $notifyUrl=NULL, $pipeline=NULL)
- $stream->snapshot($name, $format, $time=NULL, $notifyUrl=NULL, $pipeline=NULL)
- $stream->hlsPlaybackUrls($start=-1, $end=-1)
- Update API
- 1.5.0
- Add Credentials and Transport class
- Renamed $client to $hub
- 1.4.0
- Add Stream Create,Get,List
- $hub->createStream()
- $hub->getStream()
- $hub->listStreams()
- Add Stream operations else
- $stream->toJSONString()
- $stream->update()
- $stream->disable()
- $stream->enable()
- $stream->status()
- $stream->segments()
- $stream->rtmpPublishUrl()
- $stream->rtmpLiveUrls()
- $stream->hlsLiveUrls()
- $stream->httpFlvLiveUrls()
- $stream->hlsPlaybackUrls()
- $stream->snapshot()
- $stream->saveAs()
- $stream->delete()
- Add Stream Create,Get,List