Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
vlc-client manages a VLC media player instance through it's RC interface.
Add this line to your application's Gemfile:
gem 'vlc-client'
And then execute:
$ bundle
Or install it yourself as:
$ gem install vlc-client
vlc = VLC::Client.new('192.168.1.10', 9999) #Expects a VLC media player running on `192.168.1.10:9999`, e.g. `vlc --extraintf rc --rc-host 192.168.1.10:9999`
vlc.connect # connect to server
# => true
vlc.play('http://example.org/media.mp3') # play media
# => true
vlc.playing?
# => true
vlc.fullscreen
# => true
#...
Most of the time we want a local client/server VLC media player system
vlc = VLC::System.new # A client/server system over a local managed VLC instance
vlc.connected? # auto connect
# => true
vlc.play('http://example.org/media.mp3')
# => true
vlc.progress
# => 1 #%
#...
# Technically this is the same as
vlc = VLC::Client.new(VLC::Server.new('localhost', 9595, false))
vlc = VLC::System.new
vlc.add_to_playlist('track1.mp3')
vlc.add_to_playlist('track2.mp3')
vlc.play
vlc.playlist
#=> [{:number=>1, :title=>"Track #1 title", :length=>"00:03:10", :times_played=>1}, {:number=>2, :title=>"Track #2 title", :length=>"00:03:30", :times_played=>0}]
vlc-client has been tested on linux but it should work on any VLC installation as long as the command line is responsive for vlc
and cvlc
calls. On Mac OS X these are not available by default. They can be created with:
echo "alias vlc='/Applications/VLC.app/Contents/MacOS/VLC'" >> ~/.bash_profile
echo "alias cvlc='/Applications/VLC.app/Contents/MacOS/VLC'" >> ~/.bash_profile
git checkout -b my-topic-branch
)bundle exec rake spec
)bundle exec rake yard
to reviewgit commit -am 'Add some feature/fix'
) and push to the branch (git push origin my-topic-branch
)Copyright (c) 2012 Miguel Guinada LICENSE for details.
FAQs
Unknown package
We found that vlc-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.