ちょっと頼まれたので作ったコードです。 jQueryにはLazyLoadなる画像の後読みのプラグインがありますが あれは画像の表示されたら画像を読みにいくっていうことで 無駄な読み込みを減らす事ができたりするってことでしたが (結局のところ読みこんじゃうらしいですね) Youtubeの動画をページに埋め込んで、スクロールして 表示されたときに、再生してくれたらいいなってことで jQueryのLazyLoadをコードを眺めていたら どうもスクロール位置が云々している様子。 だったら、スクロールイベントで、動画を貼付けた位置になったら 再生させればいいんじゃね?ってことで じゃあ、再生コントロールはどうしたかっていうと、 YouTube JavaScript Player APIってのがあるので、これを利用。 設定的には動画の表示が画面の2/3を超えたら再生を始めるようにしました。 また、リロ