VLC

版本 1.1.0.0 (4.1 KB) 作者: Léa Strobino
A class to control VLC from MATLAB through HTTP

556.0 次下载

更新时间 2018/5/30

来自 GitHub

在 GitHub 上查看许可证

Control VLC from a MATLAB script
VLC actions such as play, pause, stop, next, previous, etc. are defined as class methods. VLC settings such as Loop, Random, Repeat and Fullscreen are exposed to MATLAB and can be accessed with set() and get(). Informations about the current file can be retrieved through the 'Current' property (length, position, metadata, etc).

Methods:
add('file'): add "file" to the playlist
play() or play('file'): resume playback or play "file"
pause(): pause playback
stop(): stop playback
next(): play next track
prev(): play previous track
seek(position): seek to position (in seconds)
move(x,y): move item ID x in the playlist after item ID y
remove(x): remove item ID x from the playlist
clear(): empty the playlist
quit(): quit VLC and delete object

Properties:
Port (read only)
Version (read only)
Status (read only)
Current (read only)
Playlist (read only)
Loop
Repeat
Random
Fullscreen
Rate
Volume

Example:

>> v = VLC()

v =

VLC with properties:

Port: 4212
Version: '2.2.8 Weatherwax'
Status: 'stopped'
Current: []
Playlist: [1x1 struct]
Loop: 'off'
Repeat: 'off'
Random: 'off'
Fullscreen: 'off'
Rate: 1
Volume: 256

>> v.play('/Users/Lea/Desktop/3905.aif')
>> v

v =

VLC with properties:

Port: 4212
Version: '2.2.8 Weatherwax'
Status: 'playing'
Current: [1x1 struct]
Playlist: [1x1 struct]
Loop: 'off'
Repeat: 'off'
Random: 'off'
Fullscreen: 'off'
Rate: 1
Volume: 256

>> v.Current

ans =

ID: 4
Length: 77.0903
Meta: [1x1 struct]
Position: 8.8021

>> v.stop()

引用格式

Léa Strobino (2022). VLC (https://github.com/leastrobino/matlab-vlc), GitHub. 检索来源 .

MATLAB 版本兼容性
创建方式 R2012b
兼容任何版本
平台兼容性
Windows macOS Linux
标签 添加标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
要查看或报告此 GitHub 附加功能的问题,请访问其 GitHub 仓库
要查看或报告此 GitHub 附加功能的问题,请访问其 GitHub 仓库