Comments (10)
@paulijar I did some more investigation and long story short - it works, no issues. I tried Edge and that worked, I also tried private Firefox session (new profile) and that also worked. So I flushed my profile and now it also works as it should. Something got cached I guess. So maybe @Spurge420 can share a file for you?
Thanks for the app. It is great!
from music.
I also see this. I play folders a lot and some of the files play just a second or so and are skipped with an error Error playing URL: /index.php/apps/music/api/file/2503189/download
. For me it happened with FLAC and also M4a files.
With the M4a it skipped 20 files and then started playing the 21st file without issues. I do not expect that this file was encoded in some special way. Technical tab shows the same details across the whole M4a album.
The logs in Nextcloud do not show anything related to this. I am playing only remotely through https. I never seen this error on the previous versions.
Nextcloud 28.0.1 (linuxserver docker container)
Music v1.10.0
Do we need to rescan the library with the new version? I have not tried that.
from music.
@Spurge420 @vitis586 Thanks for the report. Could you maybe share one sample file with me which triggers this problem for you? You can find my email address from my github profile.
from music.
@Spurge420 I got your sample files, and for me, both of them play fine and also the seeking works without any issues both on Firefox and on Chrome. Based on this, there shouldn't be anything wrong with those files specifically. My best guess is that this is some kind of configuration issue on your HTTP server or reverse proxy (or similar). Especially, you should make sure that they will not mutilate the partial content requests or responses (status code 206). You wrote that the problem happens with flac files but not with mp3 but the important difference might be that the flac files are typically much larger than the mp3 files.
from music.
Do we need to rescan the library with the new version?
No, that will not be necessary, and there's no reason to believe that it would help here. Scanning is made just to extract the metadata to show the artists and albums and so on, but the playing of the file happens directly from the original file.
from music.
Just an update, doesn't seem to happen to every flac file. Some play and seek fine. Might be related to the bitrate / encoding of the file.
Thanks for the work you do.
from music.
After I sent that everything is working, it started again. The thing is that the files do not play but as soon as I play something else for a while, I can then play most of the wrong files (not sure it there is a correlation). But I was at work and did not want to investigate.
Now at home (different machine, also Firefox) I am getting the errors as well. In the console I am getting some errors at every failed playback.
- At the very beginning (after loading the screen with Music app). There is the first error and warning that might be related.
Content-Security-Policy: The page's settings blocked the loading of a resource at eval ("script-src"). [webpack.app.ed7a3d4fa79d10ae7b4c.js:2:41067](https://cloud.example.cz/apps/music/dist/webpack.app.ed7a3d4fa79d10ae7b4c.js?v=ca892429-72)
Source map error: Error: request failed with status 404 Resource URL: https://cloud.example.cz/apps/music/dist/webpack.app.ed7a3d4fa79d10ae7b4c.js?v=ca892429-72 Source Map URL: webpack.app.ed7a3d4fa79d10ae7b4c.js.map
- After I find the "wrong" files I start getting these. This is for the first file
Using html5 for type audio/flac URL /index.php/apps/music/api/file/2503189/download [webpack.app.ed7a3d4fa79d10ae7b4c.js:2:293819](https://cloud.example.cz/apps/music/dist/webpack.app.ed7a3d4fa79d10ae7b4c.js?v=ca892429-72)
Media resource https://cloud.example.cz/index.php/apps/music/api/file/2503189/download could not be decoded. [music](https://cloud.example.cz/apps/music/#/folders)
Cannot play with HTML5, falling back to Aurora.js [webpack.app.ed7a3d4fa79d10ae7b4c.js:2:295864](https://cloud.example.cz/apps/music/dist/webpack.app.ed7a3d4fa79d10ae7b4c.js?v=ca892429-72)
Uncaught (in promise) DOMException: The media resource indicated by the src attribute or assigned media provider object was not suitable.
Media resource https://cloud.example.cz/index.php/apps/music/api/file/2503189/download could not be decoded, error: Error Code: NS_ERROR_DOM_MEDIA_METADATA_ERR (0x806e0006) [music](https://cloud.example.cz/apps/music/#/folders)
Aurora error: Error: Invalid ADTS header. [webpack.app.ed7a3d4fa79d10ae7b4c.js:2:296746](https://cloud.example.cz/apps/music/dist/webpack.app.ed7a3d4fa79d10ae7b4c.js?v=ca892429-72)
Aurora error: Error: Invalid ADTS header. [webpack.app.ed7a3d4fa79d10ae7b4c.js:2:296746](https://cloud.example.cz/apps/music/dist/webpack.app.ed7a3d4fa79d10ae7b4c.js?v=ca892429-72)
HTTP "Content-Type" of "text/html" is not supported. Load of media resource https://cloud.example.cz/apps/music/ failed. [music](https://cloud.example.cz/apps/music/#/folders)
Aurora error: Error: Invalid ADTS header.
- Then for every other file I am getting just
Aurora error: Error: Invalid ADTS header.
- Succesfull plays (mp3) are accompanied by these
HTTP "Content-Type" of "text/html" is not supported. Load of media resource https://cloud.example.cz/apps/music/ failed.
Using html5 for type audio/mpeg URL /index.php/apps/music/api/file/2503962/download
All of those are very basic (mostly) FLACs, not something exotic like DSD. Let me know if you can get something from this. The console gets flooded quite quickly, because when it starts spitting those errors, it is like a machine gun until I find something that plays. 😄
from music.
@vitis586 The first two console logs are completely normal:
Content-Security-Policy: The page's settings blocked the loading of a resource at eval ("script-src"). [webpack.app.ed7a3d4fa79d10ae7b4c.js:2:41067](https://cloud.example.cz/apps/music/dist/webpack.app.ed7a3d4fa79d10ae7b4c.js?v=ca892429-72)
Source map error: Error: request failed with status 404 Resource URL: https://cloud.example.cz/apps/music/dist/webpack.app.ed7a3d4fa79d10ae7b4c.js?v=ca892429-72 Source Map URL: webpack.app.ed7a3d4fa79d10ae7b4c.js.map
The first of these happens when the Angular.js framework checks if eval
is allowed or not (it's nowadays disallowed on all major browsers). The second just tells that you don't have the .map files to properly debug the Music app front-end. If you'd like to do that, you could download the map files from https://github.com/owncloud/music/releases and extract them to the dist
folder of your Music app installation.
I received and tested your sample file and noticed that the file cannot be played on Firefox but it plays fine on Chrome. You can even drop Music and Nextcloud out of the loop and just open the local file to Firefox and see that it cannot be played:
I then remembered that some user earlier reported about a similar problem and that was caused by somehow incorrect file metadata. I tested clearing all the metadata from your file, and indeed, it started to play normally also on Firefox! I don't know which is the offending metadata tag but this one seems pretty suspicious:
from music.
I knew that it is something stupid.. That is there because I was using Mucicbrainz to label my collection to properly show up in Jellyfin. That never worked out for these "various artist collections".
I have to find something to strip just the problematic metadata. I tried VLC na jRiver but no luck. That is a problem for another day.
So my previous statement stays - everything is OK on Music's side. 👍 Thank you again for you input and time.
from music.
Thank you Paul for your time and looking into this. Also for the Music App!
from music.
Related Issues (20)
- search broken with 1.10 HOT 2
- [Feature Request] Multiple music library paths (positive matching) HOT 1
- Subsonic: wrong API response on `albumInfo2` API HOT 2
- App glitches out when a new audio file is selected from the recent files tab in dashboard HOT 4
- Error playing URL - on Android devices HOT 8
- String being passed as int in postgres HOT 2
- After upgrading from NC 27 to 28 white side HOT 6
- #nowplaying on Audiomack HOT 1
- No tracks listed in any of the synced albums HOT 5
- Php cron job fails on Nextcloud 29.0.0 Beta HOT 3
- Benign error in nc log - Cannot set response code - headers already sent HOT 5
- Configurable session timeout for the Ampache API HOT 3
- duplicate key value violates unique constraint "music_cache_index" HOT 3
- Overview of different file types HOT 5
- Intermittent TypeError in Music App: Cannot Read "getIconUrl" Property HOT 3
- Ampache error due to interface mismatch HOT 3
- Errors logged when Subsonic `getCoverArt` called with invalid parameter HOT 1
- Ampache: Support authentication using the HTTP header HOT 1
- Errors in the Nextcloud log when using the Subsonic XML API on NC28 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from music.