janjiss / conred Goto Github PK
View Code? Open in Web Editor NEWEmbed your videos with ease
License: MIT License
Embed your videos with ease
License: MIT License
Add support for facebook videos
Fix tests with lazy load. Right now for every video I use instance, thats not cool
The README or the code needs to be updated accordingly.
Right now, if youtube url format is ok, but it is a fake one, it shows iframe without video content. Can we determine somehow, is video present in youtube or vimeo?
Maybe we should consider passing hash with args for creating instance of Conred::Video, instead of simple arguments? It would be more clear (at least for me) if it looked like:
Conred::Video(
:url => video_url, :error_message => "Video url is not valid",
:width => 350, :height => 350
)
Would that be more prefferable, than current interface, where we just pass anonymous args?
Let's say we have link like this:
http://www.youtube.com/watch?NR=1&feature=endscreen&v=CJ_ovGKN7_4
It does not render video, because regex is not recognizing video url.
Hi!
The exist? method does not work properly for youtube videos. It always returns false, no matter if the link is valid. This is because gdata.youtube.com/feeds/api/videos/ is no longer available. I think you need to use YouTube Data API V3 for checking YT videos.
Right now iframe strings are hardcoded
<<-eos
<iframe
id='vimeo_video'
src='http://player.vimeo.com/video/#{vimeo_id}'
width='#{@width}'
height='#{@height}'
frameborder='0'
webkitAllowFullScreen
mozallowfullscreen
allowFullScreen>
</iframe>
eos
We should change this to haml, so it is better tested and it will look much cleaner
Right now we have no possibility of adding class and id for video. This functionality should be added. I am thinking of a way of adding data atributes to. If somone has solutions for data attribute adding, you are welcome to help.
Should add HAML as a dependency. You get an error if you do not have it installed.
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.