Disable Media Keys? for Off Site Streaming

cmpnetwork
@cmpnetwork
12 years ago
2 posts
How would it be possible to remove the media_key for streaming audio, i would like it so flash players could be added to other sites and so fourth.
updated by @cmpnetwork: 01/19/14 02:19:36AM
michael
@michael
12 years ago
7,816 posts
adding flash players to other sites is available in the sharethis module.
https://www.jamroom.net/the-jamroom-network/networkmarket/105/share-this

I'd have to look at the code to figure out what your trying to do to do it outside that module.
brian
@brian
12 years ago
10,149 posts
michael:
adding flash players to other sites is available in the sharethis module.
https://www.jamroom.net/the-jamroom-network/networkmarket/105/share-this

This actually is not true (at this time) - ShareThis is specifically for sharing to Facebook (or the sites that are configured in ShareThis). We have not done any work on making the player embeddable on just any site, but it's something that will be coming in the future.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
cmpnetwork
@cmpnetwork
12 years ago
2 posts
thanks brian keep me posted...but is there anyway to disable and or change the part in media.php in the JrCore to disable the media_key area? so it wont have to use a media_key? below i know its in this section..


/**
 * Add a session based media key
 * @param $page string HTML contents of page
 * @return bool
 */
 
function jrCore_media_set_play_key($page)
{ if (strpos($page,'1')) { $key = mt_rand(); if (!isset($_SESSION['JRCORE_PLAY_KEYS'])) { $_SESSION['JRCORE_PLAY_KEYS'] = array(); } $_SESSION['JRCORE_PLAY_KEYS'][$key] = time(); // Keep play keys cleaned up if (count($_SESSION['JRCORE_PLAY_KEYS']) > 0) { arsort($_SESSION['JRCORE_PLAY_KEYS'],SORT_NUMERIC); $_SESSION['JRCORE_PLAY_KEYS'] = array_slice($_SESSION['JRCORE_PLAY_KEYS'],0,0,false); } $page = str_replace('1',$key,$page); } return $page; }

updated by @cmpnetwork: 12/18/13 09:06:02AM
brian
@brian
12 years ago
10,149 posts
I hate to see you modify the core - this could probably be added as a global config item to enable/disable keys - I can get that in for 5.1.6 which I'm hoping to release today.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
12 years ago
10,149 posts
Okay 5.1.6 is in the marketplace now - to disable play keys, go into the Core -> Global Config and add:

ALLOW_ALL_DOMAINS

in the "Allowed Domains" config textarea and save.

Play keys will still show up in the URL call, but they will not be enforced.

Let me know if that works for you.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags