I am trying to set up a video demo of a media center, therefore there are several movies (music, movies, photos etc.) that when clicked all play in the same pane on the screen. I am using QuickTime movies and swapping using the javascript setURL function, code excepts below:
(Note: QT_WriteOBJECT_XHTML is a free script from Apple that inserts cross browser embedded quicktime movies)
CODE
** html **
<div id="placeholder">
<script language="JavaScript" type="text/javascript">
QT_WriteOBJECT_XHTML('start.mov', '405', '240', '',
'autoplay', 'true',
'controller', 'false',
'name', 'movie',
'bgcolor', '#000000',
'showlogo', 'false');
</script>
</div>
<span onclick="java script:swapMovie('music')">Music</span> |
<span onclick="java script:swapMovie('movies')">Movies</span> |
<span onclick="java script:swapMovie('tv')">Television</span> |
<span onclick="java script:swapMovie('photos')">Photos</span>
** Javascript **
document.movie.SetResetPropertiesOnReload(false);
document.movie.SetURL(movieName+'.mov');
Actual test URL: http://centerstageproject.com/streaming/v2/
Now click to swap the movies and on Internet Explorer 6 and Firefox (PC) you normally get a white flash in the movie pane before the next movie plays, now this doesn't happen ever on Safari (Mac) but does sometimes on Firefox (Mac).
I know this can be done as Apple does something similar on this page, and it does not have the white flash before the movie.
http://www.apple.com/appletv/tour.html
Can anyone help?
Thanks...