Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expired baseUrl #10

Open
masterhui opened this issue Oct 25, 2018 · 3 comments
Open

Expired baseUrl #10

masterhui opened this issue Oct 25, 2018 · 3 comments
Labels
enhancement New feature or request

Comments

@masterhui
Copy link

Hi there, I really like your photo-frame-sample application, but I'm having the following issue, hoping you can help:

When running a slide show on a large album, the baseUrl to the image expires after 60 seconds. My custom built photo frame running the photo-frame-sample app then displays an error when fancybox tries to load the next image of the slide show. Can you think of a fix that would allow running the slideshow for durations >60 minutes?

Somehow the link that wraps the image needs to point to a ressource that retrieves a valid baseUrl during runtime of the slideshow. Could we call mediaItems.get using the mediaItemId to dynamically obtain a vailid baseUrl when fancybox tries to access an image?

Regards

@jfschmakeit
Copy link
Collaborator

Yes, the way to handle this would be to re-request base URLs for all media items that are currently in the queue. (This would be a call to mediaItems.get. There would need to be some additional logic to handle the timeout and automatically refresh the items as they are expiring.

I'll mark this one as a feature request, but I'm not sure if that's something we can update in the very near future.
For now, reloading the app itself also triggers a reload of all media items and base URLs.

@jfschmakeit jfschmakeit added the enhancement New feature or request label Oct 25, 2018
@masterhui
Copy link
Author

Thanks for your reply Jan, refershing the baseUrls of the whole queue sounds like a good idea i have not thought of yet. I think I might give it a try to implement a timed baseUrl refresh mechanism myself. I'll let you know how it goes :-)

@bulldoguk
Copy link

This is making me feel a little dumb! I don't see a mediaItems.get method - is that something intrinsic to mediaItems, or is it a method I need to create? Any samples of how to put this together?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants