solved ALLOW_ALL_DOMAINS missing

michaeld
michaeld
@michael-d
2 years ago
79 posts
So I want the ability to play my audio files on other sites...using the link to my audio file...
ALLOW_ALL_DOMAINS is not in the menu of the jamroom core - Global Config - general section
Where did this go? Can you still play your audio files from other sites?



--
Thank You
~Michael
Audio Engineer/Web Development & Graphic Design/IT

https://www.StrutterDesign.com
https://www.iMixYourMusic.com
https://www.HomeStudioMusicProduction.com
https://www.ShotsInOrder.com

updated by @michael-d: 20 Nov 2019 12:37:19PM
michaeld
michaeld
@michael-d
2 years ago
79 posts
I found what I was looking for

The Core Global Config has been changed up. "Allowed Domains" has been removed, since Jamroom no longer uses Play Keys for tracking media plays - instead it uses a new cookie based approach for managing media streams.

Is there somewhere to set this?


--
Thank You
~Michael
Audio Engineer/Web Development & Graphic Design/IT

https://www.StrutterDesign.com
https://www.iMixYourMusic.com
https://www.HomeStudioMusicProduction.com
https://www.ShotsInOrder.com
michaeld
michaeld
@michael-d
2 years ago
79 posts
How do we use the direct song url now so that it would play on another site?


--
Thank You
~Michael
Audio Engineer/Web Development & Graphic Design/IT

https://www.StrutterDesign.com
https://www.iMixYourMusic.com
https://www.HomeStudioMusicProduction.com
https://www.ShotsInOrder.com

updated by @michael-d: 20 Aug 2019 11:44:34AM
michael
@michael
2 years ago
7,410 posts
You'd need to setup a page on your site that contains your player then embed that player in the other site using an iframe.

--edit--
Add a new page to your site by adding a .tpl file to your skin (or a clone of an existing skin), eg:
/skins/YOUR-SKIN/somename.tpl

That will can be accessed by going to
your-site.com/somename

and everything you add after that as parameters will be available in the {$_post} variable. so if you had
your-site.com/somename/song_id=55

Then you could get the value of song_id via the variable {$_post.song_id}.

You can use this to pass into the {jrCore_list} (the get stuff from the database function for any jamroom datastore.)

eg:
{jrCore_list module="jrAudio" search1="_item_id = `$_post['song_id']`"}


Then take a look at how the item_detail.tpl file of the jrAudio module does it to setup a player.

updated by @michael: 20 Aug 2019 09:44:26PM
brian
@brian
2 years ago
10,002 posts
Unfortunately this is a change that has been pushed on us over the last couple years by browsers no longer sending a referrer header, so it had to change.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
michaeld
michaeld
@michael-d
2 years ago
79 posts
So it's completely impossible to use jamroom as a podcast host? Podcast users want the ability to have their blog/audio feed updated in the rss aggregators in itunes, stitcher, feedly, etc..., done automatically when a new episode or blog post is published....But they need to play the audio file that is hosted within jamroom...so how can this be accomplished.

I was getting so close to editing the rss template files, only to find out that the audio won't play from other sites :(


--
Thank You
~Michael
Audio Engineer/Web Development & Graphic Design/IT

https://www.StrutterDesign.com
https://www.iMixYourMusic.com
https://www.HomeStudioMusicProduction.com
https://www.ShotsInOrder.com
brian
@brian
2 years ago
10,002 posts
It should still work - make sure the Core -> Global Config -> Content -> "Log in to Stream" is NOT checked.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
2 years ago
10,002 posts
I was just testing this as the Log in to Stream is not going to fix it. I've just pushed a NEW Core beta - 6.4.0b6 - update to that then:

- Go in to the ACP -> Core -> Core -> Tools
- Click on "Advanced Config"
- in the "add a new advanced config key" section enter:

(for the "Config Key"): jrCore_disable_play_cookies
(for the "Config Value"): on

and save. That will bypass the play cookie checking, which does not work when the stream URL is access directly.

Let me know how that works.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
michaeld
michaeld
@michael-d
2 years ago
79 posts
Excellent Brian! I will try this out...
Can you tell me which would be the direct url to play an audio file?
Do you use the jraudio_filename_etc.... the original file name? I see there are a few options in the datastore for an audio file...
and the best path to use? do you use the url to the audio file or do we have to call something like play.php...stream.php etc...??


--
Thank You
~Michael
Audio Engineer/Web Development & Graphic Design/IT

https://www.StrutterDesign.com
https://www.iMixYourMusic.com
https://www.HomeStudioMusicProduction.com
https://www.ShotsInOrder.com
michaeld
michaeld
@michael-d
2 years ago
79 posts
Looks like I found the direct path

ex. yourwebsiteurl/audio/stream/audio_file/1 That works in a player on another domain!!
It's also working with and without the advanced key jrCore_disable_play_cookies!

Final issue is with the rss template...How do you call the song_id? or item id? What is the correct call
Do I still need the variable $item. I've tried this {$item.song_id}, and this {$item.item_id} and a few other variations

Here is what i have right now in the rss.tpl file

rss.JPG
rss.JPG  •  75KB




--
Thank You
~Michael
Audio Engineer/Web Development & Graphic Design/IT

https://www.StrutterDesign.com
https://www.iMixYourMusic.com
https://www.HomeStudioMusicProduction.com
https://www.ShotsInOrder.com

updated by @michael-d: 21 Aug 2019 02:43:10PM
douglas
@douglas
2 years ago
2,698 posts
michaeld:
Looks like I found the direct path

ex. yourwebsiteurl/audio/stream/audio_file/1 That works in a player on another domain!!
It's also working with and without the advanced key jrCore_disable_play_cookies!

Final issue is with the rss template...How do you call the song_id? or item id? What is the correct call
Do I still need the variable $item. I've tried this {$item.song_id}, and this {$item.item_id} and a few other variations


Try $item._item_id

Hope this helps!


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
michaeld
michaeld
@michael-d
2 years ago
79 posts
That works well...Thank you all!

I will start a new topic for the direct path and call to an image file, song image file more specifically.


--
Thank You
~Michael
Audio Engineer/Web Development & Graphic Design/IT

https://www.StrutterDesign.com
https://www.iMixYourMusic.com
https://www.HomeStudioMusicProduction.com
https://www.ShotsInOrder.com

Tags