Comments (3)
@TUSAB-web did you find a way (not using wordsmith) to get the embed url as I want to lazy-load the iframe/embed as well.
I ended up using Wordsmith - once to pull the YouTube ID and also to pull the stuff after the question mark in the URL in case the video starts at a specific timestamp. I actually ended up just making my field a regular URL field instead of using oEmbed because I realized I wasn’t using its functionality, as wordsmith was pulling out the video ID for me, and the custom code linked above was pulling the poster image. Let me know if you want to see the code I ended up using; but since it doesn’t use oEmbed, I won’t put it in this thread.
from oembed.
I saw that the plugin Wordsmith can grab the video ID from a YouTube link... I will try and combine that with the output from your plugin and see if it works. I will report back on how it works.
from oembed.
@TUSAB-web did you find a way (not using wordsmith) to get the embed url as I want to lazy-load the iframe/embed as well.
from oembed.
Related Issues (20)
- Unable to set a webpage as a valid source URL (fallback to iframe) since v1.3.11 HOT 5
- Does this plugin still work? HOT 10
- Exception thrown with Caching turned on HOT 10
- YouTube embeds just stopped working recently HOT 2
- Required field isn't verified on entry save HOT 7
- Craft 4? HOT 13
- 2.0.0 breaks under Craft 3.7.44 and PHP 7.4.3 HOT 4
- Enabling the cache breaks the plugin under PHP 8.1+ HOT 7
- Serialization of 'DOMDocument' is not allowed HOT 14
- FallbackAdapter is not handled correctly due to #101 fix HOT 5
- Loss of metadata when loading from cache on 2.2.x HOT 2
- Youtube embed stopped working HOT 7
- Error when using entry.field.media.image HOT 15
- oEmbed Stopped Pulling Data HOT 5
- Broken URL notifications not working on Craft 4 HOT 3
- Craft 4 embeds suddenly default to 200px wide iframe HOT 10
- Spotify embeds are only working in local environment HOT 1
- "Please check your URL" bug is back? HOT 20
- Cache tweets HOT 2
- Further changes required for GDPR compliance HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oembed.