I'm experiencing issues with the YouTube player failing to load when the power save mode is enabled in Safari 6.1 and 7 on OSX. The issue doesn't happen if the youtube user is using the experimental HTML5 player, but it's still in beta and most people are still using the Flash player. The "disable plugins to save power" option is on by default in most new versions of Safari and this causes the YouTube iFrame API to enter an endless loop as it tries to initialize the player.
Is there any attribute on the window
or navigator
objects that would possibly indicate that the power save mode is enabled so that I can warn users?
With that in mind, launch Safari and head to Safari > Preferences in the menu bar. Click on the Advanced tab and find the box labeled Stop Plug-ins to save power. Uncheck this box to disable Safari Power Saver.
Go to Settings > Battery > Power Saver Mode to toggle it on or off. Tap Turn on at specified battery level and Turn off automatically to switch the mode on or off when the battery is at a certain percentage.
Now, just go back to using your Android device—and whenever its battery level falls below 15 percent (or 5 percent, depending on the setting you picked), “Battery saver” mode will turn on automatically.
This issue is semi-intentional. The Power Saver mode in Safari deliberately stops flash content. You can read more about it in this article.
If the flash content is 'front and centre' (within a 3000 x 3000 pixel boundary starting at the top left corner of the document) it should still play. So it may help, if the youtube video is off to the side of the page, to try and centre it. Apple says content will not play if it is in the margins (see this page under the Safari Power Saver heading).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With