"Media URL could not be loaded."

elric
@elric
7 years ago
81 posts
"Media URL could not be loaded."

I am getting that error using this code in the site builder:

{jrCore_media_player module="jrVideo" items=$_items type="jrVideo_player_dark" autoplay="true" search="video_feature_section = Home Page"}

The same videos playback fine on the profile.
updated by @elric: 03/19/18 09:09:22PM
gary.moncrieff
gary.moncrieff
@garymoncrieff
7 years ago
865 posts
That code doesn't look correct, have a look here https://www.jamroom.net/the-jamroom-network/documentation/module-developer-guide/788/jrcore-media-player

items=$_items type="jrVideo_player_dark" should not be combined for a start.

Don't have any time now to help further today.
michael
@michael
7 years ago
7,714 posts
yeah, agree with gary. Whats the goal?

Probably you're wanting to use a {jrCore_list} call to create the $_items THEN pass those items to the {jrCore_media_player.....}
brian
@brian
7 years ago
10,148 posts
This is correct - you can use search conditions in a jrCore_media_player call, so there's no problem there. You want to remove the items parameter though - you want to GET the items from your search, and yet you're telling it you already have items. SO it should be:

{jrCore_media_player module="jrVideo" type="jrVideo_player_dark" autoplay="true" search="video_feature_section = Home Page"}

Let me know if that helps.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
elric
@elric
7 years ago
81 posts
Thanks Brian! I gave it a try, but get the same error! (see attached screenshot)

The regular video player in Site Builder works, but I like the functionality of using the Template Code Widget (setting auto play)
brian
@brian
7 years ago
10,148 posts
Is the player showing any media being found form the search?


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
elric
@elric
7 years ago
81 posts
It shows the list of media available, but not the media files themselves.

Tags