PHP code example of rxx / vlc-telnet

1. Go to this page and download the library: Download rxx/vlc-telnet library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

rxx / vlc-telnet example snippets


$vlc = new \RXX\VLCTelnet\VLCTelnet();
$vlc->clear();
$vlc->repeat(false);
$vlc->loop(true);
$vlc->random(true);
foreach ($videos as $video) {
    $vlc->add($video);
}

$config = new \Zend\Config\Config(array('host' => 'foo.bar', 'port' => 13013));
$nullLogger = new \Monolog\Logger('null', new \Monolog\Handler\NullHandler());
$vlc = new \RXX\VLCTelnet\VLCTelnet($config, $nullLogger, $nullLogger);