Skip to content

simonisinger/vlc_websocket_player

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VLC Websocket Player


This is just a simple full duplex websocket player based on LibVLC and Rust. The Player will report status changes to all active websocket connections and also can receive simple control commands over websocket.

Commands

play

{
    "command": "play",
    "path": "/a/full/path/to/video.mp4"
}

pause

if its already paused it will resume the video

{
    "command": "pause"
}

stop

{
    "command": "stop"
}

Seeking

Seek forward

{
    "command": "seek-forward",
    "seconds": 10
}

Seek backward

{
    "command": "seek-backward",
    "seconds": 10
}

Exit Player

{
    "command": "close-player"
}

Status Messages

The status messages for play, pause and stop are mostly following the same rules, but play has a little difference because there is a difference between the initial play and the play when it's resumed from pause. at initial play there will also send the path of video at the status message

pause, stop

{
    "event": "<event>"
}

initial play

{
    "command": "play",
    "path": "/path/to/video.mp4"
}

current time

this will only sent when a video is playing

the time value passthroughs directly from LibVLC

{
    "command": "status",
    "time": 32444
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages