Skip to content

Application to pause and play a video playing on VLC through the VLC web interface using gestures on kinect

Notifications You must be signed in to change notification settings

ryan-rozario/kinect-audio-video-interface

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

Kinect Interface for VLC

Application to pause and play a video playing on VLC through the VLC web interface or a song playing on Spotify through Spotify Web API using gestures on kinect for XBOX One.

This is part of the first lab of Human Computer Interface Course.

Software Architecture

We use the Vitruvius utilities to read the gestures from the Kinect to our WPF Application. We used the sample Gesture Control Application from their repository as a base for our application. LightBuzz-Vitruvius Repository

We used the SwipeLeft Gesture for pause and SwipeRight Gesture for play.

This WPF application then ran a python script whenever a recognized gesture was invoked

We used a python script to

  • Control the VLC player through the VLC web interface. The python script sent the appropriate GET requests to the VLC web interface to generate the appropriate output. VLC Web Interface Documentation

Spotify control has not yet been added.

If you want to add spotify control change the python script to:

Control Spotify app through the spotify web api

How to Use

VLC Web Interface

Enable control through VLC web interface by following the instruction in the documentation

WPF Application

Change the path to the python file depending on your path in GesturesPage.xaml.cs file.

start.FileName = "C:\\Users\\admin\\AppData\\Local\\Programs\\Python\\Python37\\python.exe";

You will have to change the password to the one you have set for your VLC web interface. Change the following line in the GesturesPage.xaml.cs file.

start.Arguments = string.Format("{0} {1} {2}", "C:\\Users\\admin\\Desktop\\script.py", tblGestures.Text,"{password}");

Open the VLC_Control.sln file in Visual Studio on Windows 10. Run the project.

Gestures

  • SwipeLeft to pause a video
  • SwipeRight to play a video

Futher Work

  • Add an input box on the application to that the user may enter his password associated with the web interface
  • Create the GET requests from the WPF application directly instead of through the python script
  • Add more gestures and maybe also custom gestures to control other aspects of the web player.

To edit this repo following lines are important

Runs the python script with the Gesture name as argument

GesturesPage.xaml.cs file

start.Arguments = string.Format("{0} {1} {2}", "C:\\Users\\admin\\Desktop\\script.py", tblGestures.Text,"1234");

script.py performs actions based on what arguments are provided. It makes GET requests to the web interface for VLC player based on the documentation.

Contributors

Rhevanth M (17IT133)

Pranav P (17IT229)

Ryan Rozario(17IT134)

Demo Video

Watch the video

About

Application to pause and play a video playing on VLC through the VLC web interface using gestures on kinect

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published