Skip to content

Comments

Support for Creating Variants on Demand#7

Open
mtotheikle wants to merge 1 commit intoOryzone:masterfrom
Limelyte:feature/on.demand.variant.generation
Open

Support for Creating Variants on Demand#7
mtotheikle wants to merge 1 commit intoOryzone:masterfrom
Limelyte:feature/on.demand.variant.generation

Conversation

@mtotheikle
Copy link
Contributor

This is initial support for what will later become lazy loading of variants I imagine. This also solves a use case of wanting to render media after the variant tree has been process and the files are stored on some filesystem. It becomes difficult to process a new variant later because we are not dealing with a filesystem that is local so we must get a copy of the file that will be the parent and create a temporary file on the local system that will be used as the initial to create a new context from. We may also want to update variants due to design changes such as the width and size and we should not have to re-upload the original and process the full tree again.

This is in early stages, but wanted to create a pull request for feedback and regarding thoughts/roadblocks that may occur. I am also looking to start a conversation on abstracting some of the processing logic out of MediaStorage as this class is acting as a God class and currently doing a lot of work... Other pull request may be started based off how that goes.

… needed when we generate new variants in the context after we process the initial variant tree. This is very early support and does not deal much with error check and fallbacks such as what happens when the parent source is not available. We also do not use media hints for different things such as the persistence adapter
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this method would not need particular customizations for each provider type.
Probably we should move it to the main MediaStorage class.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was thinking that as well however we have to create a local temp directory and we don't have access to the providers temp path.

@lmammino
Copy link
Member

Hi @mtotheikle!
Thanks a lot for spending your time on improving the mediastorage. This feature is one I really wanted to implement, but still had no time to think about some technical difficulties (like some you mentioned).
I had a quick look at the code and I added few comments. Unfortunately I am pretty busy these times (a lot of deadlines) and I have to admit I had just a superficial look at your code. Anyway feel free to continue working on this pull request, I'll do my best to find some time to have a deeper look at it and support you if needed.
Thanks again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants