Download the PHP package wanghouting/ltstream-php-ext without Composer

On this page you can find all versions of the php package wanghouting/ltstream-php-ext. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package ltstream-php-ext

LOOTOM 流媒体服务第三方接入获取拉流url的laravel扩展


安装

配置

  1. 注册 ServiceProvider(laravel 5.5+版本不需要手动注册):

  2. 发布配置文件:

  3. 修改.env,增加:

  4. 添加回调路由:

    注意路由地址要和在平台上注册填写的回调url保持一至,上面对应的是http://ip:port/ltstream/callback

  5. 开始使用:

    方法说明:

    • string getMainFlvLiveUrl($code) : 获取http-flv直播流主码流地址

      • 请求

        参数 说明
        $code 设备code
      • 返回值
    • string getMainTsLiveUrl($code) : 获取http-ts直播流主码流地址

      • 请求

        参数 说明
        $code 设备code
      • 返回值
    • string getSubFlvLiveUrl($code) : 获取http-flv直播流辅码流地址

      • 请求

        参数 说明
        $code 设备code
      • 返回值
    • string getSubTsLiveUrl($code) : 获取http-ts直播流辅码流地址

      • 请求

        参数 说明
        $code 设备code
      • 返回值
    • mixed addMonitor($name,$path,$subPath,$address) : 添加监控设备(需要拥有添加权限)

      • 请求

        参数 说明
        $name 设备名称
        $path 设备主码流地址
        $subPath 设备辅码流地址
        $address 设备地址
      • 返回值

        返回值 说明
        address 设备地址
        code 设备code
        online 设备在线状态,0离线,1在线
        path 设备主码流地址
        sub_path 设备辅码流地址
        snapshot 设备快照
    • mixed updateMonitor($code,$name,$path,$subPath,$address) : 更新监控设备(需要拥有更新权限)

      • 请求

        参数 说明
        $code 设备code
        $name 设备名称
        $path 设备主码流地址
        $subPath 设备辅码流地址
        $address 设备地址
      • 返回值

        返回值 说明
        address 设备地址
        code 设备code
        online 设备在线状态,0离线,1在线
        path 设备主码流地址
        sub_path 设备辅码流地址
        snapshot 设备快照
    • mixed getMonitorList() : 获取所有监控设备

      • 请求

        参数 说明
      • 返回值

        返回值 说明
        address 设备地址
        code 设备code
        online 设备在线状态,0离线,1在线
        path 设备主码流地址
        sub_path 设备辅码流地址
        snapshot 设备快照
      • mixed getMonitorPaginate($page = 1,$pageSize = 15) : 分页获取监控设备

        • 请求

          参数 说明
          $page 第几页 (默认1)
          $pageSize 每页显示条数(默认15)
        • 返回值

          返回值 说明
          total 设备总数
          address 设备地址
          code 设备code
          online 设备在线状态,0离线,1在线
          path 设备主码流地址
          sub_path 设备辅码流地址
          snapshot 设备快照
    • deleteMonitor ($code) 删除设备(需要拥有删除权限)

      • 请求

        参数 说明
        $code 设备code
      • 返回值
    • getMonitorInfo ($code) 获取设备详细信息

      • 请求

        参数 说明
        $code 设备code
      • 返回值

        返回值 说明
        address 设备地址
        code 设备code
        online 设备在线状态,0离线,1在线
        path 设备主码流地址
        sub_path 设备辅码流地址
        snapshot 设备快照

        功能清单

    • 支持http-flv直播;

    • 支持http-ts直播;

    • 支持主流/辅流;

    • 支持按需拉流;

状态码说明

状态码 说明
200 ok
400 非法的请求地址
404 请求的地址不存在
500 服务器异常
1001 无效的签名(signature)
1002 签名已过期
1003 appAccessKey和appSecret不正确
1004 第三方回调url请求超时
1005 第三方回调url返回拒绝
1006 第三方被禁用
1101 生成token失败
1102 无效的token
1103 token已过期
1201 未找到码流地址
1202 拉流失败
2001 请求参数有误
2002 权限不足

All versions of ltstream-php-ext with dependencies

PHP Build Version
Package Version
Requires guzzlehttp/guzzle Version ^6.3
php Version ^7.0.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package wanghouting/ltstream-php-ext contains the following files

Loading the files please wait ....