Playback timeout

alt=
DannyA
@dannya
9 years ago
584 posts
I have gotten the following feedback from the developers troubleshooting why certain files would not play back in the player:


As you have mentioned the file is not accessed to play in the media
player, I have debug the code and found to play the media URL get by the
function jrCore_media_file_stream() and creating the access URL from cloud
module function _jrCloudS3_s3_media_get_media_url() . These function returns
the S3 file URL with a value of expiry time.

The expiry time is taken do be current GMT timestamp. However by the time
the URL is hits the timestamp has expired by few milliseconds. We resolved
it by adding few seconds to the timestamp generated by the core classes. And
now the audio file is playing fine. We understand the Jamroom core class
might need modification by Jamroom team. Please advise.



updated by @dannya: 04/13/15 02:02:13AM
brian
@brian
9 years ago
10,148 posts
Right now it is set for 10 seconds, which should be plenty of time for the player to make the redirect call - is your player intercepting the redirect call and doing something before redirecting?


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
DannyA
@dannya
9 years ago
584 posts
It seems they were talking about
_jrCloudS3_s3_media_get_media_url($profile_id, $file, $send_name = null, $expire_seconds = 0)

By extending the expire time, it allowed time for the download to work.

It seems the expiration time on the player might be something else. However, they don't have much clarity on the way stream.php works.
brian
@brian
9 years ago
10,148 posts
DannyA:
It seems they were talking about
_jrCloudS3_s3_media_get_media_url($profile_id, $file, $send_name = null, $expire_seconds = 0)

By extending the expire time, it allowed time for the download to work.

It seems the expiration time on the player might be something else. However, they don't have much clarity on the way stream.php works.

My question still remains - why is taking 10 seconds for your browser to follow the redirect?


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
DannyA
@dannya
9 years ago
584 posts
Haven't heard back from you about looking into the modules. Took the old developers off the task as they were not able to proceed and had no answers. Now I have Nate looking into it.
brian
@brian
9 years ago
10,148 posts
DannyA:
Haven't heard back from you about looking into the modules. Took the old developers off the task as they were not able to proceed and had no answers. Now I have Nate looking into it.

Sorry Danny - I've been out most of this week and will be getting caught up over the weekend, so give me a bit and I will be getting back to you via email.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
DannyA
@dannya
9 years ago
584 posts
Sure. You might want to do another pull if you are looking at the code. Solved some problems but have new ones.

On the bright side, Nate is working on it now so we have someone who built some of this and know how Jamroom works and is in our timezone. However we still need your help as all this stuff is new and undocumented. There is no real documentation on how S3 works, or how the queues and cloud modules work so your input will save a lot of time.

Tags