Hi,
My google maps API 3 page is experiencing some problems in Chrome and
Safari.
http://takemethereboris.co.uk/
I am trying to play a youtube video in an InfoWindow. This works fine
in FF and IE, but in Chrome and Safari the results are patchy.
In Chrome some of the video player is obscured.
In Safari it is positioned in the wrong plage.
Also when the map is moved, the InfoWindow moves but the youtube video
does not.
I have tried position absolute, relative etc on video and container
elements. I have played with the flash parameters like scale and
wmode.
The html for the InfoWindow looks like this:
this.getContentWindowHTML = function()
{
return '<div class="boris-video">'
+ '<h1>'+
this.name +'</h1>'
+'<object width="'+LocationManager.VIDEO_WIDTH+'"
height="'+LocationManager.VIDEO_HEIGHT+'">'
+'<param name="movie" value="
http://www.youtube.com/v/'+this.videoId
+'&autoplay=1"></param>'
+'<param name="allowFullScreen" value="true"></param>'
+'<param name="allowscriptaccess" value="always"></param>'
+'<embed src="
http://www.youtube.com/v/'+this.videoId+'&autoplay=1"
type="application/x-shockwave-flash" allowscriptaccess="always"
allowfullscreen="true" width="'+LocationManager.VIDEO_WIDTH+'"
height="'+LocationManager.VIDEO_HEIGHT+'"></embed>'
+'</object>'
+'<div class="more-info">'
+ '<a href="'+this.wikilink+'" target="_blank"><img src="images/
wikipedia.gif" alt="find out more"/></a>'
+'</div>'
+'</div>';
}
any help much appreciated.
Henry