itteco / oembed2 Goto Github PK
View Code? Open in Web Editor NEWNew Responsive Embeds protocol
Home Page: http://iframely.com/oembed2
New Responsive Embeds protocol
Home Page: http://iframely.com/oembed2
See general JS events/methods description by @bdougherty in #1.
For general discovery, there is an idea to add initial handshake, where iFrame will post a Message to the parent with the list of events/functions it supports and that parent can use.
Anyone would like to share of thoughts how to do it?
Also, take a look at the current spec where it says about method register
with windowId
.
Let's change it for general handshake mechanism, if we need one.
At the very lease, ID certainly makes it easy to communicate between parent and iFrame. We might, for example, also include format=JSON or =string
communication on initial handshake, so parent knows in which format to communicate messages to iFrame. (@panzi please join)
I have a very basic page that returns:
<!DOCTYPE html>
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="https://betterdx-survey-2v73ynd6da-uc.a.run.app/services/iframely/bdd844dc-1230-11eb-adc1-0242ac120002" media="(min-width:100) and (min-height:100)" rel="iframely survey" title="asdf" type="text/html">
</head>
<body>hello, world</body>
</html>
But this service doesn't work in http://debug.iframely.com/ and when I try it in https://iframely.com/embed it says:
Sorry...
Iframely needs at least a thumbnail image to be able to generate a summary card.
I'm not sure what else needs to be there for this to work.
In: https://github.com/itteco/oembed2/blob/master/3%20-%20Rel%20Use%20Cases.md
The SlimSurvey examples are broken.
Here's a quote of what we need community help with here:
playback
- for player
indicating that widget supports JavaScript or window.postMessage
API to control media playback. With the list of calls, similar to what YouTube, Vimeo and Soundcloud have.So in a sense, the task is to synchronize the spec of those three providers that all of them have probability to potentially adapt in the future. Cross-provider playback sync is critical for a lot of apps. At the moment they have to rely on removing/adding players in DOM to control user experience.
We already have some of the general events in the spec (like the ones that register the iframe and the one that resizes it on onload) - but it can be changed to accommodate the general approach.
See beginning of discussion in itteco/iframely#29
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.