https:\/\/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