Comments (6)
You can just add it to the params object and it'll add to the URL just like the loop
from oembed.
Ok, only the VIDEOID
is dynamicly fetched from the URL in the oEmbed field. So is it possible to implement this in the plugin? Because each oEmbed field can have different URL's, or the given URL can change in the future.
from oembed.
What's the playlist you're trying? Or will any playlist be fine to test? I'll give it a go in the morning.
from oembed.
What's the playlist you're trying?
The same as the given VIDEOID, from the Google YouTube docs:
To loop a single video, set the loop parameter value to 1 and set the playlist parameter value to the same video ID already specified in the Player API URL: https://www.youtube.com/embed/VIDEO_ID?playlist=VIDEO_ID&loop=1
So when the URL in the oEmbed field is: https://youtu.be/Vol0KTIE2O8
or https://www.youtube.com/watch?v=Vol0KTIE2O8
and we render it with:
{{ video.render({ params: { autoplay: 1, controls: 0, mute: 1, loop: 1 } }) }}
We get:
<iframe width="200" height="113" src="https://www.youtube.com/embed/Vol0KTIE2O8?loop=1&mute=1&controls=0&autoplay=1&feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen="" title="Strandpark de Zeeuwse Kust film"></iframe>
We would also like the playlist
param with the same [VIDEOID]
as in the URL. In this example Vol0KTIE2O8
, then it repeats over and over again ;), else it stops after 1 cycle.
Thank you in advance Regan! For support and spending your time
from oembed.
@holiday-jan Found issues with the src handling and also added support for the playlist when loop=1
is found
Give v3.0.7 a go and let me know it that works
from oembed.
Works perfectly! 👍
from oembed.
Related Issues (20)
- Cache tweets HOT 2
- Further changes required for GDPR compliance HOT 4
- Video preview very small HOT 2
- Division by zero error in both backend and frontend HOT 4
- ignores time #t=1m12s HOT 4
- Vimeo URLs not working (when video is set to be hidden on Vimeo.com) HOT 1
- Field always renders as if it has content HOT 2
- Field causes template to crash if left blank HOT 3
- Issue when using oEmbed in Vizy block HOT 3
- v3 does not return `.images` and other API data HOT 10
- Additional data missing for media objects HOT 11
- How do we get the media data with the new update? HOT 7
- YT/Vimeo media URL blank after upgrading to 3.x HOT 3
- Google Maps Error: www.google.com refused to connect HOT 1
- Large quantities of embed-cookies-{uid} are being created, but not deleted? HOT 1
- possible to display Youtube thumbnail before user gives cookie consent? HOT 2
- Vimeo URLs not working in any environment HOT 28
- GrapQL - Error when querying an entry with a empty oEmbed URL
- oEmebed resources not loaded in Craft Cloud environment HOT 17
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.