Professional Documents
Culture Documents
https://www.tutorialspoint.com/html/html_forms.htm
https://codegena.com/auto-embed-latest-video-youtube-channel/
http://www.htmlinstant.com/ [run codes here]
--------------------------------------------------
cid = Channel ID
vnum = 0 = latest video.
vnum = 1 = second latest video and so on.
autoplay = 0 = autoplay off
autoplay = 1 = autoplay on
?rel=1 = suggested videos related to my channel
-----------------------------------------------------------------------------------
----
https://www.digitalbard.com/how-to-stop-unrelated-videos-from-showing-up-at-the-
end-of-your-youtube-video/
Under the video you want to post to your website, you will select “Share” >
then “Embed.” This generates the html code that you need to place a video on your
website.
Copy and paste into your website source code, where you want the video to
display.
Now modify the code by adding “?rel=0” after the source URL, as in
src=”//www.youtube.com/embed/ABcDEfGHiJklm?rel=0″
And presto, bingo – now only your channel’s videos will be offered after a viewing.
-----------------------------------------------------------------------------------
------------
sort by most popular
https://www.youtube.com/channel/UClrjBl3Kfqk1tjosIRztGfQ/videos?
view=0&sort=p&flow=grid
<script src="https://apis.google.com/js/platform.js"></script>
/**
* This sample subscribes the active user to the GoogleDevelopers
* YouTube channel, specified by the channelId.
*/
function addSubscription() {
// Replace this channel ID with the channel ID you want to subscribe to
var channelId = 'UClrjBl3Kfqk1tjosIRztGfQ';
var resource = {
snippet: {
resourceId: {
kind: 'youtube#channel',
channelId: channelId
}
}
};
try {
var response = YouTube.Subscriptions.insert(resource, 'snippet');
Logger.log(response);
} catch (e) {
if(e.message.match('subscriptionDuplicate')) {
Logger.log('Cannot subscribe; already subscribed to channel: ' + channelId);
} else {
Logger.log('Error adding subscription: ' + e.message);
}
}
}
-------------------------------------------------------------------
<iframe src=”http://www.youtube.com/subscribe_widget?p=Full_French”
style=”overflow: hidden; height: 105px; width: 300px; border: 0;” scrolling=”no”
frameBorder=”0″></iframe>