Giter Club home page Giter Club logo

restplayer's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

scarsman

restplayer's Issues

Remove iframes

Html is using iframes ...

This was done for fast prototyping due to (my) javascript restrictions.

It is very ugly and wrong, so it must be fixed.

Allow control of screens

For video suport, screens must be configurable (when used on old laptops and sutff)

an example is to use only the HDMI port like this:

xrandr --output HDMI1 --auto --same-as LVDS1
or xrandr --output HDMI1 --primary

Check "man xrandr" for more options.

Also the xrand output can be parsed to display the displays.

cristiano@debiantv:~$ xrandr
Screen 0: minimum 320 x 200, current 3200 x 1080, maximum 8192 x 8192
LVDS1 connected 1280x800+1920+0 (normal left inverted right x axis y axis) 331mm x 207mm
1280x800 60.00_+
1024x768 60.00
800x600 60.32 56.25
640x480 59.94
VGA1 disconnected (normal left inverted right x axis y axis)
HDMI1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 160mm x 90mm
1920x1080 60.00_+ 50.00 59.94 30.00 25.00 24.00 29.97 23.98
1920x1080i 60.00 50.00 59.94
1280x720 60.00 50.00 59.94
720x576 50.00
720x480 60.00 59.94
640x480 60.00 59.94
TV1 unknown connection (normal left inverted right x axis y axis)
848x480 59.94 +
640x480 59.94 +
1024x768 59.94
800x600 59.94

Failure in VLC

Playing after a while, this error was shown together with a "please help" vlc screen ( I was running on localhost, so a real vlc player openned to me).

Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
[00007f2854002358] xcb_window window error: X server failure

Play multiple files on player

Player now only play one file at a time.
Is should be able to receive a list of files and play all of them.

Futhermore, the methods next and previus should be implemented.

Filter files when adding directory.

When adding a directory that contains other dirs or files, the vlc breaks.

Files added to stage must be filtered with the same filter used to display it.

Split webservice into more files.

Webservice is a mess.
It has multiple controls regarding player, volume, upload, playing queue.
It can be splited into other files, which shall use the same flask app.
the webservice it self should handle static files, debugs like map and the "/".
If #7 is done, it can be done with reduced manual testing.

Stop refreshing page

Stop refreshing page every time a action (POST, PUT) is perforrmed. Instead, the javascript must do the PUT/POST/GET/DELETE without changing the page.

A update must run every 1, 5, 10 seg (?) to keep information updated.

The upload/adddir may be always available in the interface.

URL playing

check if entry is a URL, if so, play it without searching file system.

doing it in the same endpoint is better.

Config and directories

Some directories are persistent and must not be configured through rest interface.

We shall create a config file, with a default location and a option in the command line interface.

A script to create the directories (url and playlist for now).

Config file can be a simple python file.

Failure on Pulse Audio

I've seen this on the logs:

[00007f8f080ee188] pulse audio output error: PulseAudio server connection failure: Connection refused

It should be checked

Add music upload capability

Create a end point in which the music may be POSTed, so users can upload music to the player.

It would be good limiting upload sizes or directory size.

Suporte a execução de playlists

O seguinte código permite a criação e execução

x = vlc.MediaListPlayer()
y = vlc.MediaList()
y.add_media("test_files/DOt_-05-IMF.mp3")
y.add_media("test_files/DOt
-05-_IMF.mp3")
x.set_media_list(y)
x.play()
x.next()
x.next()
%hist

A idéia é que isso seja incorporado ao player, e se o arquivo for um arquivo .m3u, então ele ira lê-lo em e criar a estrutura acima, senão, seguirá o comportamento padrão.

Create playlist from URL

Check for all mp3 in a given URL ( or set of URLs ) and create a playlist based on it.

If it's recursive, it would be better, but can be a problem.

Improve play queue management

Add new functions to play queue:

  • Reorder
  • Remove
  • Merge(with other playlist)

Maybe the "stage" can became a class separating concerns from webservice.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.