Skip to content

#AVO-3679: add commands to flowplayer to be triggered via postMessage #105

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 27, 2025

Conversation

reunefe
Copy link
Contributor

@reunefe reunefe commented May 26, 2025

No description provided.

@reunefe reunefe requested a review from bertyhell May 26, 2025 10:48
Comment on lines +56 to +62
case 'set_current_time':
videoPlayer.currentTime = message.payload.currentTime;
sendMessage({
event: message.command,
result: { currentTime: videoPlayer.currentTime },
});
break;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe add a test to the codepen to see if it works from outside the iframe: https://codepen.io/bertyhell/pen/VYYJbOz

button onclick => find first iframe . postmessage => set current time = 60 seconds

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Took some puzzling to see how to get it working:
https://codepen.io/ikkimausi/pen/Eajamep
But you need to still start the video by hand before being able to set the time via the button.

@reunefe reunefe merged commit dbd6991 into master May 27, 2025
1 check passed
@reunefe reunefe deleted the feature/AVO-3679_post-messages-FlowPlayer branch May 27, 2025 06:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants