poteto / ember-lazy-video Goto Github PK
View Code? Open in Web Editor NEWLazy load videos in an Ember app
Home Page: http://emberjs.jsbin.com/qaribi
License: MIT License
Lazy load videos in an Ember app
Home Page: http://emberjs.jsbin.com/qaribi
License: MIT License
Hi, in the current version of the repo the #31 and #23 are solved and in addition the capacity of adding custom poster/thumbnail to the videos, are you planning on publishing a new version to NPM with these changes or is something more that you want to tackle on before releasing a new version?
If this is the case let me know if there's anything I could do to help.
Thanks!
This is more of a question at this point.
In past plugins I've used (like this one) that have exposed embed functionality for a number of providers like this addon does, I could just pass in the full url to the video and the plugin would sort out which provider it was from and return the appropriate embed. So for this this addon instead of:
{{lazy-video provider="youtube" videoId="gvdf5n-zI14"}}
it would be:
{{lazy-video video="https://vimeo.com/108532122"}}
I think this makes it easier from the end user's perspective since they don't have to worry about breaking out the provider and the videoId.
Thoughts? I can help with implementation if there is interest.
For example, we could show a user-specified default placeholder in its place.
Implement something like Torii's provider registration, so anyone can add their own providers locally within their app
I'm getting the following deprecation warning when using this component in Ember 1.11
WARNING: Binding style attributes may introduce cross-site scripting vulnerabilities; please ensure that values being bound are properly escaped. For more information, including how to disable this warning, see http://emberjs.com/deprecations/v1.x/#toc_warning-when-binding-style-attributes.
Also, in 1.11, {{bind-attr ...}} is deprecated so you may want to update that in the component template (or wait until bind-attr is completed removed).
Thumbnail images don't appear at all in the current version. I suspect it is partially related to this change, although if I revert to just background
instead of background-image
the formatting is still not correct. Here is a before and after of what I'm talking about:
Hey everyone, first - thanks for the addon! I was wondering if there was any interest in adding a configuration option for specifying a protocol for URLs, rather than using the default protocol relative ones. In our mobile app, these end up being file://
which, of course, don't work. I would be happy to work on this PR if that sounds interesting.
Branching from #6, the stylesheet at app\styles\lazy-load.css
does not get imported when this addon is installed in a project
I don't see this function being used anywhere, can it be removed?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.