Pause flash activity

M

mailpitches

I've noticed a subtle yet cool feature in Safari and I'm wondering how
they did it. If you go to YouTube and open one of the videos in a new
tab (Command-click), the page will load in the new tab but the video
won't start loading or playing. Then if you click on the tab, the video
will start playing and loading. If you immediately click back to
another tab, the video will continue loading but will stop playing.

It seems pretty clear how Safari could stop the flash animation from
loading the first time, but how does it distinguish between preloading
activity and video-playing activity when you switch back to the other
tab? Is it possible to emulate this by interacting with the flash
animation with javascript?

I only have limited experience with Flash, which is probably why I'm
puzzled by this. I'm a programmer though so don't spare the details.

Thanks
MP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,152
Latest member
LorettaGur
Top