Asked by smfmetro10
at 2024-08-07 15:28:13
Point:500 Replies:13 POST_ID:828711USER_ID:11607
Topic:
JavaScript;Scripting Languages;Asynchronous Javascript and XML (AJAX)
Hi,
I have a webpage where I am pulling youtube videos automatically from a youtube channel.
I would like to be able to add a search feature to the webpage.
So far I can only search the entire youtube instead of a specific channel.
Is it possible? I would only like to be able to search this channel : http://www.youtube.com/user/doctorscompany/
Here is the code I have so far:
<script src="https://www.google.com/jsapi"
type="text/javascript"></script>
<script type="text/javascript">
google.load("search", "1");
// Call this function when the page has been loaded
function initialize() {
var searchControl = new google.search.SearchControl();
searchControl.addSearcher(new google.search.VideoSearch("doctorscompany"));
searchControl.draw(document.getElementById("searchcontrol"));
}
google.setOnLoadCallback(initialize);
</script>
I have a webpage where I am pulling youtube videos automatically from a youtube channel.
I would like to be able to add a search feature to the webpage.
So far I can only search the entire youtube instead of a specific channel.
Is it possible? I would only like to be able to search this channel : http://www.youtube.com/user/doctorscompany/
Here is the code I have so far:
<script src="https://www.google.com/jsapi"
type="text/javascript"></script>
<script type="text/javascript">
google.load("search", "1");
// Call this function when the page has been loaded
function initialize() {
var searchControl = new google.search.SearchControl();
searchControl.addSearcher(new google.search.VideoSearch("doctorscompany"));
searchControl.draw(document.getElementById("searchcontrol"));
}
google.setOnLoadCallback(initialize);
</script>