Class: VLC::Client
- Inherits:
-
Object
- Object
- VLC::Client
- Includes:
- ConnectionManagement, MediaControls, PlaylistControls, VideoControls
- Defined in:
- lib/vlc-client.rb,
lib/vlc-client/client/media_controls.rb,
lib/vlc-client/client/video_controls.rb,
lib/vlc-client/client/playlist_controls.rb,
lib/vlc-client/client/connection_management.rb
Overview
The VLC client
Defined Under Namespace
Modules: ConnectionManagement, MediaControls, PlaylistControls, VideoControls
Constant Summary
Constants included from MediaControls
Instance Attribute Summary collapse
-
#connection ⇒ Object
readonly
Returns the value of attribute connection.
-
#host ⇒ Object
Returns the value of attribute host.
-
#port ⇒ Object
Returns the value of attribute port.
-
#server ⇒ Object
Returns the value of attribute server.
Instance Method Summary collapse
-
#initialize(*args) ⇒ VLC::VLC
constructor
Creates a client to manage VLC media player.
Methods included from ConnectionManagement
#connect, #connected?, #disconnect, #disconnected?
Methods included from VideoControls
Methods included from PlaylistControls
#add_to_playlist, #clear, #next, #playlist, #previous
Methods included from MediaControls
#length, #pause, #play, #playing?, #progress, #seek, #status, #stop, #stopped?, #time, #title, #volume, #volume=
Constructor Details
#initialize(host, port) ⇒ VLC::VLC #initialize(server, options) ⇒ VLC::VLC
Creates a client to manage VLC media player
63 64 65 66 67 68 69 70 71 |
# File 'lib/vlc-client.rb', line 63 def initialize(*args) args = NullObject.Null?(args) = args. process_args(args) @connection = Connection.new(host, port, [:read_timeout]) bind_server(server, ) unless server.nil? end |
Instance Attribute Details
#connection ⇒ Object (readonly)
Returns the value of attribute connection.
25 26 27 |
# File 'lib/vlc-client.rb', line 25 def connection @connection end |
#host ⇒ Object
Returns the value of attribute host.
26 27 28 |
# File 'lib/vlc-client.rb', line 26 def host @host end |
#port ⇒ Object
Returns the value of attribute port.
26 27 28 |
# File 'lib/vlc-client.rb', line 26 def port @port end |
#server ⇒ Object
Returns the value of attribute server.
26 27 28 |
# File 'lib/vlc-client.rb', line 26 def server @server end |