How stream url works to play mp3 songs.

sbhadauria
@sbhadauria
10 years ago
129 posts
We have not found any stream method in my jrAudio file.

http://yoursite.com/audio/stream/audio_file/2/key=111U4NvzVVG1/file.mp3

Above url is not play in firefox browser, when I again convert it into .mp3 then it's play well.

Kindly suggest.
updated by @sbhadauria: 07/29/14 04:09:49PM
michael
@michael
10 years ago
7,746 posts
that key is only valid for you.

I looked for the audio file list:
http://dev.xtraxx.com/audio

but there is nothing there.
sbhadauria
@sbhadauria
10 years ago
129 posts
How this url works
brian
@brian
10 years ago
10,148 posts
sbhadauria:
How this url works

"stream" is a Magic View provided by the Jamroom Core (jrCore) - here's a hangout video from Michale talking about them:

https://www.jamroom.net/michael/documentation/google-hangouts/1728/hangout-magic-views-and-profiles

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
sbhadauria
@sbhadauria
10 years ago
129 posts
We have got the below mentioned URL to play the mp3 files by our system but
we have not found any file on this URL so we are trying to find out how this
URL is executing.
URL:
http://yoursite.com/audio/stream/audio_file/2/key=C5vDD812qrUg/file.mp3
updated by @sbhadauria: 06/25/14 09:36:01PM
michael
@michael
10 years ago
7,746 posts
You can look at how the stream function works for your self in the:
/modules/jrCore/index.php file

The function you want is view_jrCore_stream_file() around line 5166 ish.

You can tap in to it via a listener for the event stream_file
sbhadauria
@sbhadauria
10 years ago
129 posts
Thanks michale
michael
@michael
10 years ago
7,746 posts
If you watch the video in the link you will learn about 'magic_views'

'stream' is a magic view provided by jrCore.

do a search on 'magic_view' you will see a lot of them registered in the modules _init() function.

They are like a fallback function so if the module does not define a view then other modules can define a magic_view to take care of that system.

The most common one you will encounter is the /image/ magic view. Because the jrImage module has a magic_view defined for the /image/ url all other modules do not need to worry about image processing.

example:
http://demo.jamroom.net/jrMediaProLight/profile/image/profile_image/2/xxlarge/crop=square/_v=1388636283

Its a profile image. but the jrProfile module does not have any image processing code contained within it.

If I had to guess at your issue my guess would be that because your passing HTML5 stuff to your player FireFox wants the headers for it to be something other than 'html/text'. If you can figure out what it wants we can probably get that updated in the core if its good for every one.

If you cant figure out what it wants, look towards emulating the pattern that the default players use to pass the audio in. That works.
jpg
 •  139KB


updated by @michael: 06/26/14 03:34:56AM

Tags