Youtubeの規約では同時再生は規約違反 同時再生は規約違反になるので、一つしか再生されないようにする方法を記載していきます。 下記参考 まずは、youtube iframe apiのjsを読み込む scriptタグに下記のsrcを読み込む この時点でconsoleにYTと打って存在すれば読み込めています <div> <iframe width="50%" height="315" src="https://www.youtube.com/embed/eB0arUZ-63I?enablejsapi=1" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" al
![iframe APIを使って、Youtubeの同時再生をを止める方法](https://cdn-ak-scissors.b.st-hatena.com/image/square/2b3eaa60742b082965fb64f5c0da6d5bc5ddb76a/height=288;version=1;width=512/https%3A%2F%2Fres.cloudinary.com%2Fzenn%2Fimage%2Fupload%2Fs--TJxecYso--%2Fc_fit%252Cg_north_west%252Cl_text%3Anotosansjp-medium.otf_55%3Aiframe%252520API%2525E3%252582%252592%2525E4%2525BD%2525BF%2525E3%252581%2525A3%2525E3%252581%2525A6%2525E3%252580%252581Youtube%2525E3%252581%2525AE%2525E5%252590%25258C%2525E6%252599%252582%2525E5%252586%25258D%2525E7%252594%25259F%2525E3%252582%252592%2525E3%252582%252592%2525E6%2525AD%2525A2%2525E3%252582%252581%2525E3%252582%25258B%2525E6%252596%2525B9%2525E6%2525B3%252595%252Cw_1010%252Cx_90%252Cy_100%2Fg_south_west%252Cl_text%3Anotosansjp-medium.otf_34%3Akinchan%252540rabee%252Cx_220%252Cy_108%2Fbo_3px_solid_rgb%3Ad6e3ed%252Cg_south_west%252Ch_90%252Cl_fetch%3AaHR0cHM6Ly9zdG9yYWdlLmdvb2dsZWFwaXMuY29tL3plbm4tdXNlci11cGxvYWQvYXZhdGFyLzVlMWYxMzE5MTcuanBlZw%3D%3D%252Cr_20%252Cw_90%252Cx_92%252Cy_102%2Fco_rgb%3A6e7b85%252Cg_south_west%252Cl_text%3Anotosansjp-medium.otf_30%3ARabee%252520Tech%252520blog%252Cx_220%252Cy_160%2Fbo_4px_solid_white%252Cg_south_west%252Ch_50%252Cl_fetch%3AaHR0cHM6Ly9zdG9yYWdlLmdvb2dsZWFwaXMuY29tL3plbm4tdXNlci11cGxvYWQvYXZhdGFyL2JjMGZlODU2OGMuanBlZw%3D%3D%252Cr_max%252Cw_50%252Cx_139%252Cy_84%2Fv1627283836%2Fdefault%2Fog-base-w1200-v2.png)