Now Playing section

Nmaster88
Nmaster88
@nmaster88
8 years ago
94 posts
I want to have in a site were doing a section where we have the musics that are playing by the users.
Is there a module that does that? A function or something we can use?
Or do we have to develop that?

Thanks
updated by @nmaster88: 06/14/16 12:31:40AM
michael
@michael
8 years ago
7,715 posts
The function that handles the streaming of the songs is view_jrCore_stream_file() and it can be found at:
/modules/jrCore/index.php around line 6000 ish

There is an event that is fired when that streaming beings, it is 'stream_file'

Docs: "Events and Listeners"
https://www.jamroom.net/the-jamroom-network/documentation/development/1011/events-and-listeners

after that fires then the process is handed off to jrCore_media_file_stream() to actually stream the file via whichever media file streaming system is active.

The default active one will probably be _jrCore_local_media_stream()

You could certainly pick up the names of the files BEGINNING to stream with the listener, not sure about checking whether they are actually streaming or not though.

See how far that gets you.

Tags