solved An error was encountered loading the media URL

izhmel
@izhmel
4 years ago
1,325 posts
How can I get the media player to skip over "An error was encountered loading the media URL" when there is a missing media file instead of halting the player ?

Thanks


--
The Scientist
dubmusic.com
Thanks for any assistance.

updated by @izhmel: 08/28/20 02:03:39PM
paul
@paul
4 years ago
4,330 posts
I would suggest either deleting the faulty item, or updating it with a valid file.


--
Paul Asher - JR Developer and System Import Specialist
izhmel
@izhmel
4 years ago
1,325 posts
There may be too many items to delete and is why skip over is better .
You will first have to know about " An error was encountered loading the media URL " to find and delete the file .
Just imagine each time a media file gone bad the nightmare it would be to find and edit from this list https://www.dubmusic.com/radio ..

Is there a way to do this skip over ?


--
The Scientist
dubmusic.com
Thanks for any assistance.
paul
@paul
4 years ago
4,330 posts
I don't think this is possible. This functionality is deeply embedded in the Jamroom Core javascript processes.
Sorry.


--
Paul Asher - JR Developer and System Import Specialist
michael
@michael
4 years ago
7,740 posts
There is an event that happens when that message shows "An error was encountered loading the media URL", the event is 'stream_url_error'.

One solution could be to build a module that listens for that event and when it happens the audio file that was trying to be streamed gets flagged with a tag like audio_stream_error = 1.

Then in your playlist you could filter out any audio files that have been tagged as bad.

{jrCore_media_player type="jrAudioPro2_playlist_player" module="jrAudio" field="audio_file" search1="audio_stream_error != 1" limit="50"}

The real issue is that you have bad audio files, this would help locate those so you can get rid of them.
michael
@michael
4 years ago
7,740 posts
Actually, that's not going to work because the stream_url_error does not have the ID of the audio file that failed with it.

We'll build a tool into the jrAudio module that checks for 404 not found files and adds a flag to them, then you can use that while you're doing something about re-uploading.
izhmel
@izhmel
4 years ago
1,325 posts
Skip to the next song would be also perfect.

This would be also good to incorporate because if a user puts up a file that has gone bad I cant replace it I can only delete it ..

It would be also good to put all the bad files in a bin so the admin could select all then delete them .

Thanks


--
The Scientist
dubmusic.com
Thanks for any assistance.

updated by @izhmel: 05/23/20 06:12:01PM
MetalScene
MetalScene
@themetalscene
4 years ago
66 posts
All my audio is doing this, 150 + songs across 20 bands

An error was encountered loading the media URL

Some track were working now they not.

I personally uploaded all the items.
updated by @themetalscene: 05/24/20 07:21:04AM
MetalScene
MetalScene
@themetalscene
4 years ago
66 posts
It increases the play count but just throws up a error.
michael
@michael
4 years ago
7,740 posts
We've built a tool to determine if the file exists on the server. Once the the tool is run it marks all the entries in the database that do not have files on the file system so you can delete them.

@metalscore check your CONSOLE to see what the error is. Is it a 404 error or something different.

Files don't go bad except for if there was some issue with the hosting. Which should be very rare and fixed by your hosting company. The most likely cause for need of this tool is if a file failed to upload correctly or the database was moved without the file system.
404.jpg
404.jpg  •  828KB

izhmel
@izhmel
4 years ago
1,325 posts
How to use the tool ?
My issue is until I get to fix the bad file when users are listening to https://www.dubmusic.com/radio/
the player will be halted and the service will be interrupted this is why "skip over to the next audio file is needed "
in addition to the tool you made

Thanks


--
The Scientist
dubmusic.com
Thanks for any assistance.
paul
@paul
4 years ago
4,330 posts
Once the Audio module with this tool is released run the tool, then either delete the faulty audio items or add a search parameter to the player code so that only good audio items are returned. No ‘skip’ now needed.


--
Paul Asher - JR Developer and System Import Specialist
MetalScene
MetalScene
@themetalscene
4 years ago
66 posts
I see my stuff is all sitting in "waiting to process mode"

Array
(
    [file_name] => audio_file
    [quota_id] => 1
    [profile_id] => 31
    [item_id] => 163
    [sample] => 
    [sample_length] => 60
    [bitrate] => 320
    [max_workers] => 1
    [__queue_worker_timeout] => 3600
)

updated by @themetalscene: 05/25/20 04:22:11AM
paul
@paul
4 years ago
4,330 posts
@themetalscene - This isn't the same issue. Start a new thread on it if need be.


--
Paul Asher - JR Developer and System Import Specialist
MetalScene
MetalScene
@themetalscene
4 years ago
66 posts
Ok thank you.
izhmel
@izhmel
4 years ago
1,325 posts
paul:
Once the Audio module with this tool is released run the tool, then either delete the faulty audio items or add a search parameter to the player code so that only good audio items are returned. No ‘skip’ now needed.

But the audio player will remain halted until the admin becomes aware of the situation and is why skip to the next song is needed. The admin can delete the bad song at a later time in the mean time the service will not be interrupted ..


--
The Scientist
dubmusic.com
Thanks for any assistance.

updated by @izhmel: 05/25/20 09:05:52AM
paul
@paul
4 years ago
4,330 posts
Quote: But the audio player will remain halted until the admin becomes aware of the situation and is why skip to the next song is needed

But after running the tool the admin WILL be aware of the situation.
hth


--
Paul Asher - JR Developer and System Import Specialist
michael
@michael
4 years ago
7,740 posts
If this is a common issue for you try different hosting. Files should not go bad after they've been uploaded.
izhmel
@izhmel
4 years ago
1,325 posts
It is not the hosting this happened over many host and it dose not matter .
Why a skip over is so hard to incorporate in the player ?


--
The Scientist
dubmusic.com
Thanks for any assistance.
michael
@michael
4 years ago
7,740 posts
because its a strange thing to ask:
* "Here is a list of songs to play, some of them don't work."

Why are you asking the player to play a list of songs where some of them don't work.

The default player is JPlayer:
https://www.jplayer.org/latest/demo-02/?theme=0

The adjustment would need to be done by them.
izhmel
@izhmel
4 years ago
1,325 posts
michael:
because its a strange thing to ask:
* "Here is a list of songs to play, some of them don't work."

Why are you asking the player to play a list of songs where some of them don't work.

The default player is JPlayer:
https://www.jplayer.org/latest/demo-02/?theme=0

The adjustment would need to be done by them.

Can you ask them to make the adjustment ?
I think you released the tool ? if so check all would be good , it takes too long to delete too many missing files

Thanks


--
The Scientist
dubmusic.com
Thanks for any assistance.
paul
@paul
4 years ago
4,330 posts
Quote: if so check all would be good

The tool does check all audio items. Have just looked at your site and you have 42 faulty items listed, each with a delete button next to it. It will only take you a few minutes to go through and delete them all. We might be able to add a 'delete all' option for a future release, but as it stands, you should be able to resolve your issue.


--
Paul Asher - JR Developer and System Import Specialist
izhmel
@izhmel
4 years ago
1,325 posts
Thanks


--
The Scientist
dubmusic.com
Thanks for any assistance.
izhmel
@izhmel
4 years ago
1,325 posts
paul:
Quote: if so check all would be good

The tool does check all audio items. Have just looked at your site and you have 42 faulty items listed, each with a delete button next to it. It will only take you a few minutes to go through and delete them all. We might be able to add a 'delete all' option for a future release, but as it stands, you should be able to resolve your issue.

I meant select all so you don't have to do them individually


--
The Scientist
dubmusic.com
Thanks for any assistance.
paul
@paul
4 years ago
4,330 posts
Quote: I meant select all so you don't have to do them individually

Yes, realised that. Thanks.


--
Paul Asher - JR Developer and System Import Specialist
izhmel
@izhmel
4 years ago
1,325 posts
I can no longer find the tool , where is it ?


--
The Scientist
dubmusic.com
Thanks for any assistance.
paul
@paul
4 years ago
4,330 posts
In the Audio module's Tools section, the Validate Audio Files button.


--
Paul Asher - JR Developer and System Import Specialist
izhmel
@izhmel
4 years ago
1,325 posts
Thanks Paul


--
The Scientist
dubmusic.com
Thanks for any assistance.
izhmel
@izhmel
4 years ago
1,325 posts
Select all is needed for the tool it takes too long to delete 40 audio_404

Thanks


--
The Scientist
dubmusic.com
Thanks for any assistance.
paul
@paul
4 years ago
4,330 posts
This has been answered above.


--
Paul Asher - JR Developer and System Import Specialist
izhmel
@izhmel
4 years ago
1,325 posts
Where it been answered ?


--
The Scientist
dubmusic.com
Thanks for any assistance.
paul
@paul
4 years ago
4,330 posts
Quote: We might be able to add a 'delete all' option for a future release, but as it stands, you should be able to resolve your issue.



--
Paul Asher - JR Developer and System Import Specialist
izhmel
@izhmel
4 years ago
1,325 posts
Thanks


--
The Scientist
dubmusic.com
Thanks for any assistance.

Tags