Download the PHP package rxx/vlc-telnet without Composer
On this page you can find all versions of the php package rxx/vlc-telnet. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rxx/vlc-telnet
More information about rxx/vlc-telnet
Files in rxx/vlc-telnet
Package vlc-telnet
Short Description For interacting with VLC telnet console
License GPL v3.0
Homepage https://github.com/RosyDoubleCross/php-vlc-telnet
Informations about the package vlc-telnet
php-vlc-telnet
This is a tiny PHP library for interacting with VLC telnet console to implement custom video stream automation or create alternate interfaces.
Usage
The VLCTelnet class connects to a single VLC telnet console and provides methods for most of the commands that are worth using. It uses sensible defaults or can be configured more extensively by way of a Zend Config object and/or Monolog Loggers.
By default, as in the example above, the VLCTelnet object will connect to localhost port 5023. It will output action log information to stdout, and it will output telnet traffic to stderr. Both of these outputs use ANSI colors for clarity. This is especially useful with the telnet traffic to distinguish which text is going which direction.
To connect to a different endpoint, you must provide a Zend Config object with "host" and "port" values set. You may also provide alternative Monolog Logger targets for the action log and the socket log.
Caveats
This library was developed against "VLC media player 2.0.6 Twoflower", although I don't believe the VLC telnet console functionality changes very often.
Be careful about letting a default VLCTelnet object destruct. It will close stdin and stderr when the destruct cascades to the default Monolog Loggers that are pointing to those. (This may make debugging frustrating.) Perhaps I should modify the defaults to work around this problem.
License
php-vlc-telnet Copyright (C) 2014 Joe Lafiosca [email protected]
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
All versions of vlc-telnet with dependencies
rxx/colors Version ~1.0
monolog/monolog Version ~1.11
zendframework/zend-config Version ~2.3