jrc9designstudio / statamic-video-embed Goto Github PK
View Code? Open in Web Editor NEWA field type for embedding YouTube and Vimeo Videos
License: MIT License
A field type for embedding YouTube and Vimeo Videos
License: MIT License
Video links that are exposed in certain share dialogs of Vimeo can have two path segments, this breaks the embed.
It seems this happens with private videos that are exposed via a "share" link.
Paste this: https://vimeo.com/680825358/fd410b0271
into the video url field of "statamic-video-embed"
Current behaviour:
breaks because it takes the last path segment even though it should take the first
Expected behaviour:
works because it takes the first path segment
Update Docs to Show Example of Using Grid to Override Settings on the Edit Page.
Offer a JS Loookup API so custom forms can show video previews (such as Workshop forms).
Hey, I think I may have found a bug, but can't be certain.
I'm using a VideoEmbed field to pull in a YouTube video. This worked perfectly, and all the expected meta data came along with it.
I've since changed that video to a Vimeo one. The video itself changes, but all the other meta data (such as title
, description
, etc) remains the same as the data from the YouTube video.
It would appear to be because no meta data is coming from Vimeo on any of the videos I tested (both on my account and others), and it would also appear that the old meta data from the last video isn't removed, unless there is new data to take it's place.
I'll confess to not knowing PHP, so unfortunately can't help fix it, but thought I'd let you know.
Cheers for the awesome addon by the way!
Videos "hidden from vimeo.com" which are private protected content do not offer any data to the open API even when attempting to embed on a whitelisted domain.
This means that no data (such as thumbnail URLs) can be pulled as JSON to the addon, essentially rendering it defunct.
The solution would be to implement vimeo API token based authentication in the addon so that it is able to retrieve video metadata and store it to the statamic fieldset entry.
I wish I could help but I lack the coding skills to make this happen.
Hey guys, do you have any plans for updating this for Statamic v3?
To let others create their own tags using the data etc.
Get and save aspect ratio and more data, and then make it available in tags.
youtu.be addresses not recognized.
It would be nice to only allow videos from a specific provider, fx. Vimeo, so you don't need to specific a YouTube API key.
Get missing info via PHP, this is useful if a video is added via a form not through CP, or the Javascript request fails for some reason.
It will also help with an option to refresh video information.
Offer an option to download thumbnails to assets.
This will have the benefit of caching glide manipulations done to thumbnails.
Use the V3 API to get more of the available thumbnails from Vimeo and deduce the larger thumbnail sizes from YouTube based on their url pattern and store them in an array.
Work started here: #9
thumbnails:
-
url: https://vimeo.com/thumbnail
width: 1200
height: 640
-
url: https://vimeo.com/other_thumbnail
width: 640
height: 480
I used the video embed field inside a grid field. When I enter a video URL in one row, it uses that same video URL in all the rows instead of each one keeping the video URL I put in it.
Video Embed Causes Horizontal Scrolling on Sneak Peek.
Offer a CLI task to update video Info.
videoembed.css and fieldtype.js return 404 in local.
I renamed the folder 'VideoEmbed' and paste it in 'addons'.
fieldtype.js:11 Uncaught (in promise) TypeError: Cannot read property 'key' of undefined
at VideoEmbedFieldtype.data (fieldtype.js:11)
at VideoEmbedFieldtype. (vue.common.js:1796)
at vue.common.js:1802
at VideoEmbedFieldtype.e._initData (vue.common.js:8055)
at VideoEmbedFieldtype.e._initState (vue.common.js:8027)
at VideoEmbedFieldtype.e._init (vue.common.js:2573)
at new VideoEmbedFieldtype (eval at (vue.common.js:10151), :3:54)
at Fr.build (vue.common.js:5963)
at Fr.mountComponent (vue.common.js:5880)
at vue.common.js:5842
Hi!
It looks like the way Statamic allows Addons to extend the functionality has subtly changed in 2.6. To quote their changelog:
"Your extra addon classes should longer extend Addon. Instead, you can should use the Extensible trait to get access to helper methods."
This is causing the following error:
Class Statamic\Addons\VideoEmbed\VideoEmbed may not inherit from final class (Statamic\Extend\Addon)
I'm not particularly proficient in php, otherwise I'd make what I'm sure is a simple change and submit a PR. Failing that, I thought I'd let you know what I've found!
Cheers, Jamie.
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.