question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

setCurrentTime fails silently for Vimeo iframe embeds in iOS Safari

See original GitHub issue

Expected Behavior

For setCurrentTime to seek the Vimeo player and display the frame at the passed timestamp. Or for setCurrentTime to return an error in the catch method.

For comparison, the YouTube iframe player will display the frame at the passed timestamp in iOS Safari when seekTo is called via the iframe API.

Actual Behavior

The player does not seek and does not return an error in iOS Safari.

Steps to Reproduce

CodePen debug view | CodePen editor view

Correct behavior on desktop
  1. Open the linked debug view on a desktop browser.
  2. Scroll up/down.
  3. Note the video scrubbing in the background, also note the console logging setCurrentTime invocation, and success or failure.
Incorrect behavior on mobile
  1. Open the linked debug view in iOS Safari.
  2. Scroll up/down.
  3. Note the video not responding, also note the console logging setCurrentTime invocation but never logging success or failure.

Compare to YouTube

CodePen debug view | CodePen editor view

Correct behavior on mobile
  1. Open the linked debug view in iOS Safari.
  2. Scroll up/down.
  3. Note the video scrubbing successfully.

Additional Note

I think this may be resolved by enabling the new playsinline feature within the iframe embed.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
luwescommented, Mar 2, 2018

@ehmorris would you mind having a look if this issue persists? We recently had several fixes go out, including the throwing errors correctly in catch.

0reactions
luwescommented, Mar 2, 2018

Awesome! I will reference #20 here to keep that in mind when adding a start time option. Thanks for your feedback!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Embedded Vimeo videos do not work on iPad Safari via ios ...
My question is simple: why can't I play embedded Vimeo videos (using the universal iframe embed code) on iOS Simulator running an iPad...
Read more >
Player SDK: Reference - Vimeo Developer
This reference guide provides comprehensive details about the methods and events for controlling an embedded Vimeo player through the player SDK.
Read more >
Vimeo not working properly in safari on both mobile and ...
We have an issue with Vimeo and safari on both mobile and desktop, clashing with the hummingbird. When the video has a domain-level ......
Read more >
[Solved]-how to set image picker image chosen for button in iOS
Coding example for the question how to set image picker image chosen for button in iOS.
Read more >
vimeo/player/README.md - UNPKG
53, You can use the library to make the embed for you. ... 108, The Player API library is supported in IE 11+,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found