2017 © Pedro Peláez
 

library php-acestream

image

sokil/php-acestream

  • Thursday, September 3, 2015
  • by sokil
  • Repository
  • 1 Watchers
  • 2 Stars
  • 43 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 2 % Grown

The README.md

ACE Stream Widget

Client for torrent player AceStream. This project is not maintainer and may be in not actual state., (*1)

Latest Stable Version Total Downloads, (*2)

Installation

"require": {
    "sokil/php-acestream": "dev-master"
}

Common Usage

Incluging JS scripts can be done directry or through some asset manager. Direct inclusion:, (*3)

<script type="text/javascript" src="/js/core.js" />
<script type="text/javascript" src="/js/player.js" />
<script type="text/javascript" src="/js/ext.js" />

Call widget in your template:, (*4)

<?php echo new \Sokil\ACEPlayer\Player(array(
    'debug' => true,
    'media' => array(
        'url'   => 'http://example.com/film.torrent',
        'name'  => 'Film Title',
    ),
    'height' => '200px',
); ?>

Usage in Yii Framework

Add namespace 'vendor' somewhere in entry point file to register composer's vedror dir., (*5)

define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));
Yii::setPathOfAlias('vendor', APPLICATION_PATH . '/../vendor/');

Register static files in your controller, (*6)

Yii::import('vendor.sokil.php-acestream.src.Sokil.ACEPlayer.YiiPlayer');
YiiPlayer::registerStaticFiles();

Call widget in template, (*7)

<?php $this->widget('vendor.sokil.php-acestream.src.Sokil.ACEPlayer.YiiPlayer', array(
    'debug' => true,
    'media' => array(
        'url'   => 'http://example.com/film.torrent',
        'name'  => 'Film Title',
    ),
    'height' => '200px',
)); ?>

Parameters

Parameter Description
debug Write debug data to console's log
media This can be url or array {'url' => '', 'name' => ''}. Url may be in any format: unicast, multicast, torrent link or even number of media in playlist
height Height of player. Width is always 100%
notInstalledPlayerMessage Message that will be shown if AceStream Plugin not installed

The Versions

03/09 2015

dev-master

9999999-dev

  Sources   Download

MIT

by Dmytro Sokil

10/05 2014

0.1

0.1.0.0

  Sources   Download

MIT

by Avatar sokil