Sunday, October 19, 2014

How to use safari to play music in Google Play Music

Recently, I discovered that Safari (7.0.6) is not playing music from Google Play Music website. Whenever I try to listen something I got the following error.
I thought it is due to Power Saver, a new feature of safari to reduce energy use. Whit this feature it blocks flash working in background. But in some cases as in this one it also blocks the ones you actually want to work. You can disable Power Saver all together or you can program it such that it will not work on some web site. I will show you how to disable it only for certain websites which is google play music for this case.

Steps:
1. Open Google Play Music website (music.google.com)
2. Log in
3. Click to a song or radio to listen
4. You will get the error as shown above
5. Go to Error Console by clicking command + alt + C  if your developer menu is not enabled follow steps on this link to enable developer menu first
6. Then copy and paste following code into command menu

  1. var jq = document.createElement('script');
  2. jq.src = "//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js";
  3. document.getElementsByTagName('head')[0].appendChild(jq);
  4. // Wait 3 seconds.
  5. setTimeout(function() {
  6.   jQuery.noConflict();
  7.   jQuery('#embed-container embed').css({
  8.     'height' : '800px',
  9.     'width'  : '800px'
  10.   });
  11. }, 3000);

7. A large white box will appear. Refresh the page several times. And the song should start playing. If not restart safari and try steps starting from the first one.

A way to check wether this trick worked is to

1. Go to menu bar  Safari>Preferences
2. Go to advanced tab
3. Click details in field Internet Plug ins
4. You should see play.google.com on the exception list (i wish there is an add bottom on that list. That way would be much easier)

Lastly I want to acknowledge the source where I find this method. I found this from another blog https://grahamwalters.me/2014/02/24/how-to-fix-google-play-music-not-playing-in-safari/

If my explanation is not enough for you give a check to  this blog.





No comments:

Post a Comment

Trying to include webp to PDF

 Trying to include webp to PDF