Warning: Constant MULTISITE already defined in /home/pbmalartu/public_html/wp-config.php on line 107

Warning: Constant SUBDOMAIN_INSTALL already defined in /home/pbmalartu/public_html/wp-config.php on line 108

Warning: Constant DOMAIN_CURRENT_SITE already defined in /home/pbmalartu/public_html/wp-config.php on line 109

Warning: Constant PATH_CURRENT_SITE already defined in /home/pbmalartu/public_html/wp-config.php on line 110

Warning: Constant SITE_ID_CURRENT_SITE already defined in /home/pbmalartu/public_html/wp-config.php on line 111

Warning: Constant BLOG_ID_CURRENT_SITE already defined in /home/pbmalartu/public_html/wp-config.php on line 112

Warning: The magic method Pressbooks\Book::__wakeup() must have public visibility in /home/pbmalartu/public_html/wp-content/plugins/pressbooks/inc/class-book.php on line 62

Warning: Cannot modify header information - headers already sent by (output started at /home/pbmalartu/public_html/wp-config.php:107) in /home/pbmalartu/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1758

Warning: Cannot modify header information - headers already sent by (output started at /home/pbmalartu/public_html/wp-config.php:107) in /home/pbmalartu/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1758

Warning: Cannot modify header information - headers already sent by (output started at /home/pbmalartu/public_html/wp-config.php:107) in /home/pbmalartu/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1758

Warning: Cannot modify header information - headers already sent by (output started at /home/pbmalartu/public_html/wp-config.php:107) in /home/pbmalartu/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1758

Warning: Cannot modify header information - headers already sent by (output started at /home/pbmalartu/public_html/wp-config.php:107) in /home/pbmalartu/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1758

Warning: Cannot modify header information - headers already sent by (output started at /home/pbmalartu/public_html/wp-config.php:107) in /home/pbmalartu/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1758

Warning: Cannot modify header information - headers already sent by (output started at /home/pbmalartu/public_html/wp-config.php:107) in /home/pbmalartu/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1758

Warning: Cannot modify header information - headers already sent by (output started at /home/pbmalartu/public_html/wp-config.php:107) in /home/pbmalartu/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1758
{"id":88,"date":"2018-09-20T20:35:56","date_gmt":"2018-09-20T20:35:56","guid":{"rendered":"https:\/\/pb.malartu.org\/opentextauthorguide\/chapter\/preventing-video-rollover\/"},"modified":"2018-09-20T20:35:56","modified_gmt":"2018-09-20T20:35:56","slug":"preventing-video-rollover","status":"publish","type":"chapter","link":"https:\/\/pb.malartu.org\/opentextauthorguide\/chapter\/preventing-video-rollover\/","title":{"rendered":"Preventing Video Rollover"},"content":{"raw":"\nSometimes the YouTube videos being embedded come from a playlist. If a playlist video is embedded, then after the video plays, it will roll over into the next video, which may or may not be related. Since we don't want unrelated videos to play in the textbook, we need to prevent video rollover. We'll use the automatic embed method to be clear.\n\n[caption id=\"attachment_633\" align=\"aligncenter\" width=\"300\"]\"You<\/a> You can tell that this video comes from a playlist due to the playlist interface on the right-hand side of the screen.[\/caption]\n\nIf your video comes from a playlist (see image above) the video's URL will be a bit longer, and look something like the following:\n
\nhttps:\/\/www.youtube.com\/watch?v=UBvD3TVdAqs&list=PLoyeLDwSM5B4rC6LARKwQ0w4D3JkIc78c<\/code>\n<\/div>\n\nAnd it will display like this:\n
\nhttps:\/\/www.youtube.com\/watch?v=UBvD3TVdAqs&list=PLoyeLDwSM5B4rC6LARKwQ0w4D3JkIc78c\n<\/div>\n\nIf you watch this video until the end, you'll notice that it rolls over into the next video in the playlist - which might not be appropriate given the content of the video and the subject matter of the textbook.\n\nIn order to prevent this video from rolling over, we need to adjust the URL by removing the second part of the link that begins with &list=...\n\nSo if the original URL looks like this:\n\n
\nhttps:\/\/www.youtube.com\/watch?v=UBvD3TVdAqs&list=PLoyeLDwSM5B4rC6LARKwQ0w4D3JkIc78c<\/code>\n<\/div>\n\nWe truncate the URL to now look like this:\n\n
\nhttps:\/\/www.youtube.com\/watch?v=UBvD3TVdAqs<\/code>\n<\/div>\n\nAnd the video should display correctly, like so:\n\n
\nhttps:\/\/www.youtube.com\/watch?v=UBvD3TVdAqs\n<\/div>\n","rendered":"

Sometimes the YouTube videos being embedded come from a playlist. If a playlist video is embedded, then after the video plays, it will roll over into the next video, which may or may not be related. Since we don’t want unrelated videos to play in the textbook, we need to prevent video rollover. We’ll use the automatic embed method to be clear.<\/p>\n

\"You<\/a><\/p>\n

You can tell that this video comes from a playlist due to the playlist interface on the right-hand side of the screen.<\/p>\n<\/div>\n

If your video comes from a playlist (see image above) the video’s URL will be a bit longer, and look something like the following:<\/p>\n

\nhttps:\/\/www.youtube.com\/watch?v=UBvD3TVdAqs&list=PLoyeLDwSM5B4rC6LARKwQ0w4D3JkIc78c<\/code>\n<\/div>\n

And it will display like this:<\/p>\n

\n