lucas42 / lucos_media_manager Goto Github PK
View Code? Open in Web Editor NEWA java service for keeping track of which music is currently playing.
A java service for keeping track of which music is currently playing.
The follow stracktrace occurs sometimes:
Feb 18 19:07:23 lucos_media_manager[21825]: Server Error (HttpRequest, host:10.0.0.4):
Feb 18 19:07:23 lucos_media_manager[21825]: java.lang.NullPointerException
Feb 18 19:07:23 lucos_media_manager[21825]: at java.util.LinkedList$ListItr.next(LinkedList.java:893)
Feb 18 19:07:23 lucos_media_manager[21825]: at Manager.createFullSummary(Manager.java:165)
Feb 18 19:07:23 lucos_media_manager[21825]: at Manager.fullSummaryHasChanged(Manager.java:101)
Feb 18 19:07:23 lucos_media_manager[21825]: at HttpRequest.processRequest(HttpRequest.java:181)
Feb 18 19:07:23 lucos_media_manager[21825]: at HttpRequest.run(HttpRequest.java:30)
Feb 18 19:07:23 lucos_media_manager[21825]: at java.lang.Thread.run(Thread.java:745)
Once it starts it occurs repetitively. Only way to fix it is restart the service.
Currently mvn runs tests at every available point. This means for a single commit they get run 3 times:
Limit this to just the test job, to speed things up and avoid conflicting results in different places.
Currently the hashCode method for Track is based on its URL. However, now that track metadata can be changed, it should factor that in, so that a metadata change causes the hashcode to change too.
The volume endpoint checks inputs to make sure they're valid numbers. But sending the input "NaN" is seen as a valid number. However, on reading this later, GSON gets very confused, throwing an error and causing requests to hang.
/volume?volume=NaN
The BBC has broken loads of its /music website. Looks like they don't care for the web anymore. ๐คทโโ๏ธ
Perhaps look at other sources of images (if you do find one, try to cache it server-side, rather than hot-loading, so won't have this issue in future).
Enable the order of tracks in the playlist to be altered.
Sometimes PlaylistTest:topups()
fails on:
Example failure: https://app.circleci.com/pipelines/github/lucas42/lucos_media_manager/69/workflows/6dffe309-ab53-4cf4-bddd-f3d519ea57aa/jobs/188
13.26 [ERROR] Tests run: 5, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.24 s <<< FAILURE! - in PlaylistTest
13.26 [ERROR] topups Time elapsed: 0.067 s <<< FAILURE!
13.26 org.mockito.exceptions.verification.TooFewActualInvocations:
13.26
13.26 loganne.post(
13.26 "fetchTracks",
13.26 "Fetching more tracks to add to the current playlist"
13.26 );
13.26 Wanted 2 times:
13.26 -> at Loganne.post(Loganne.java:18)
13.26 But was 1 time:
13.26 -> at Playlist.topupTracks(Playlist.java:120)
13.26
13.26 at PlaylistTest.topups(PlaylistTest.java:73)
13.26
Volume should account for perceived loudness.
http://stackoverflow.com/questions/5365766/non-linear-volume-for-htmlmediaelement
Stacktrace:
ERROR: Unknown Error (HttpRequest, host:172.25.0.1):
java.lang.IndexOutOfBoundsException: Index: 0, Size: -1
at java.base/java.util.LinkedList.checkPositionIndex(LinkedList.java:564)
at java.base/java.util.LinkedList.listIterator(LinkedList.java:871)
at java.base/java.util.AbstractList.listIterator(AbstractList.java:311)
at java.base/java.util.AbstractSequentialList.iterator(AbstractSequentialList.java:238)
at java.base/java.util.AbstractList.hashCode(AbstractList.java:566)
at Playlist.hashCode(Playlist.java:117)
at Status.hashCode(Status.java:37)
at Status.summaryHasChanged(Status.java:44)
at FrontController.respond(FrontController.java:61)
at FrontController.processRequest(FrontController.java:46)
at FrontController.run(FrontController.java:26)
at java.base/java.lang.Thread.run(Thread.java:833)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.