定制 gbrousse/icecast-auth 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

gbrousse/icecast-auth

最新稳定版本:1.0.1-RC

Composer 安装命令:

composer require gbrousse/icecast-auth

包简介

PHP librairy used to authenticate listeners via Icecast authentication via the URL system

README 文档

README

Total Downloads Latest Stable Version

PHP library used to authenticate listeners via Icecast authentication (URL) (http://icecast.org/docs/icecast-2.4.1/auth.html). This library execute your own functions or methods on Icesast server events.

Installation

Install the latest version with

$ composer require gbrousse/icecast-auth

Basic usage

Create a PHP File that the Icecast server can reach

<?php

use IcecastAuth\IcecastAuth; 
$IceAuth = new IcecastAuth();

// Setup
$IceAuth->setAuthCallback('function1'); // REQUIRED : Set the function call for the authentication 
        
// Execute
$IceAuth->execute();

Setup callback function will receive as argument an array containing :

  • server : domain of the Icecast server
  • port : the port use to call the stream
  • client : an unique id set by Icecast for the listener
  • mountpoint : the mount called by listener
  • ip : ip of the listener
  • all GET parameters in the stream url called by the listener

Configure mount on Icecast server

<mount>
    <mount-name>/example.ogg</mount-name>
    <authentication type="url">
    	<option name="mount_add" value="[URL OF THE SCRIPT YOU CREATE ABOVE]"/>
        <option name="auth_header" value="icecast-auth-user: 1"/>
        <option name="timelimit_header" value="icecast-auth-timelimit:"/>
    </authentication>
</mount>

Examples

About

Requirements

  • IcecastAuth works with PHP 5.3 or above.

Submitting bugs and feature requests

Bugs and feature request are tracked on GitHub

Author

Gregory Brousse - pro@gregory-brousse.fr - http://gregory-brousse.fr

License

IcecastAuth is licensed under the LGPL-3.0 License - see the LICENSE file for details

统计信息

  • 总下载量: 35
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL-3.0
  • 更新时间: 2015-10-21