Re:ShowHN: Generate your own MTV (Last.fm+Youtube)
by pierrefar on Sunday October 24, 2010 @10:24AM
(#1826163)
Conceptually, I can think of two classes of solutions:
1. Put the overlay only over the part of the player you really want to catch the clicks for. It sounds you want it only for the play/pause so it might work. You'd need to calculate or guess where these controls are actually on the screen.
2. Detect whether the player is loaded and only if it is do you insert the overlay or enable the click event for it. This solution has a nice side effect of being able to tell the user they need flash enabled for yrou app to work.
1. Put the overlay only over the part of the player you really want to catch the clicks for. It sounds you want it only for the play/pause so it might work. You'd need to calculate or guess where these controls are actually on the screen.
2. Detect whether the player is loaded and only if it is do you insert the overlay or enable the click event for it. This solution has a nice side effect of being able to tell the user they need flash enabled for yrou app to work.