Forum Activity for @michael

michael
@michael
07/01/14 09:16:30PM
7,832 posts

About Intergration script into jamroom


Using Jamroom

cadberry:...trying to intergrate a chatroom.... want users to be able to block their page with payment access.....once paid they (the chatters) have access right away...

The way I would set this up would not be with the subscriptions model.

I think a valid_til date would be the best way to go.

* The user purchases an extension of the date they can access the chatroom until.
* If the users entry pass still has time to go on it, they can enter, otherwise they see the pay button.

That way each user can have a separate chatroom on their profile and each is paid entry.

If you only want 1 chatroom on the main site, then do what paul said.

Either way its going to require coding.
michael
@michael
07/01/14 09:08:51PM
7,832 posts

Embed Audio


Using Jamroom

Dazed:...Is there a way to use jrEmbed on all audio by an artist?...

Not into a blog post, no. Other than what Paul suggested, make a playlist of all the audio.

Whats the goal?

BLOG:"This weeks blog post, all our audio files of all time".

Doesn't leave much for next week's blog post.
michael
@michael
07/01/14 09:02:18PM
7,832 posts

glDatePicker offset/position


Jamroom Developers

who's 'gl'?

glDatePicker

GUESSES:
* Make sure that that calId starts with a letter, ids that start with a number cause problems.
* see how settings.position is set. That looks like the best candidate to start fiddling with.

What I think is happening:
* the position is determined by locating the position of something that already exists on the page, moving that around should change the position of the date picker to it.

Also look at position:relative and position:absolute. If you have a position:absolute INSIDE a position:relative, then it becomes absolute position in relation to the containing object, NOT to the page. So that could be effecting it.
michael
@michael
07/01/14 08:43:27PM
7,832 posts

SOX, LAME, and other audio functions


Jamroom Developers

All of the code is there for you in the module, you can watch it work.

I suggest setting up xdebug and walk through the code as it runs.
michael
@michael
07/01/14 08:05:05PM
7,832 posts

Setting up the subscriptions...


Installation and Configuration

What is the issue you're having?

FoxyCart only allows you to charge a subscription price for the user to change themselves to a different quota.

After that all the options the quota gets are set as normal. Audio settings are set in the audio module. Video settings are set in the QUOTA tab of the video module.
michael
@michael
06/27/14 01:24:25AM
7,832 posts

pre tag in pages


Installation and Configuration

If its ok in the page source, then you're right, the next place to look is in the CSS.
michael
@michael
06/26/14 11:39:51PM
7,832 posts

pre tag in pages


Installation and Configuration

My first place to look would be the source code of the output text and look to see if there is a br at the end of each line of score.

If there is then it is an issue of nl2br.
michael
@michael
06/26/14 02:56:25AM
7,832 posts

How stream url works to play mp3 songs.


Jamroom Developers

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.
- 139KB

updated by @michael: 06/26/14 03:34:56AM
michael
@michael
06/26/14 01:51:06AM
7,832 posts

How stream url works to play mp3 songs.


Jamroom Developers

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
michael
@michael
06/26/14 01:46:46AM
7,832 posts

stream is working in chrome but not in firefox


Jamroom Developers

That's a fantastic looking skin. Great work!

What is that format that your using to return data, its not JSON.

[{title_id: "128", track_id: "128", artist: [[1, 1, "admin", "http://www.sampatti.com/xtraxxdev2/admin"], [128, 1, "New jrAudio", "http://www.sampatti.com/xtraxxdev2/admin/songs/128/new-jraudio"], [3809, 2, "admin", "http://www.sampatti.com/xtraxxdev2/admin"]], title: "New jrAudio", title_url: "http://www.sampatti.com/xtraxxdev2/admin/songs/128/new-jraudio", track_url: "http://www.sampatti.com/xtraxxdev2/admin/songs/128/new-jraudio", label: [13088, "", "songs"], genre: "Accapella", genre_url: "/songs/genre=Accapella", catnumber: "SSR1301000", promo: false, duration: "00:00:01", r_date: "2014-05-22", price: {hbr: 10.00, wav: 10.00}, bought: false, bpm: 128, license: 175, image: "http://www.sampatti.com/xtraxxdev2/songs/image/audio_image/128/large/crop=auto/", thumb: "http://www.sampatti.com/xtraxxdev2/songs/image/audio_image/128/small/crop=auto/", mp3: "http://www.sampatti.com/xtraxxdev2/songs/stream/audio_file/128/key=q9uz9A3SRf9d/file.mp3", waveform: "http://www.sampatti.com/xtraxxdev2/songs/image/audio_waveform_image/128/xxlarge/"}] 

When I open the file directly in firefox it plays just fine. So it seams to me to be something to do with the headers.

The same issue does not appear to be an issue with the default players so I would look at the way you are passing the song to the player.

In the default players it is passed in via the jPlayerPlaylist() javascript function.
  685