Extend iframe message API #3100
Labels
No labels
backend
critical
defect
duplicate
enhancement
fixed
frontend
general
invalid
major
minor
normal
oxjs
pandora_client
python-ox
task
trivial
wontfix
worksforme
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: 0x2620/pandora#3100
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently, there are a few ways to communicate between a parent page and an iframe embed. This ticket is an attempt to start documenting all the current possibilities of message passing, as well as make feature requests for more events and messages to be exposed via the embed API.
Current message API:
Messages that can be sent from parent to iframe:
Events sent from iframe back to parent window:
^^ TODO: more detailed docs and examples
Some brain-dump of further use-cases:
I want to be able to update / set the time-code of the video in the iframe via the parent. This may already possible using setUrl. Needs example.
I want to be able to subscribe to timecode position updates within the iframe from the parent. This would require adding "position" or so to the list of events passed from iframe to parent.
... TODO: add further use-cases, also covering more embed types than simple video.
Created a repository with a basic example of sending and receiving messages to a pad.ma embed iframe:
https://code.with.camp/sanj/padmaEmbeds
Can see it: https://dataliberationfront.in/padmaEmbeds