Copyright © 2005-2023 MultiMedia Soft

Youtube.VideoListSearch method

Previous pageReturn to chapter overviewNext page

Remarks

 

Begins searching videos on Youtube by providing a string of text.

 

Once the search is completed the YoutubeSearchDone event is raised with the nSearchType parameter set to YOUTUBE_SEARCH_VIDEOS and results can be enumerated through the Youtube.VideoListSearchItemsCountGet method and related information can be obtained through the Youtube.VideoListSearchItemInfoGet and Youtube.VideoListSearchItemThumbnailGet methods.

 

For details about management of Youtube connections refer to How to enumerate and download video/audio clips from Youtube tutorial.

For further details about methods related to Youtube searches refer to the YoutubeMan class.

 

 

Syntax

 

[Visual Basic]

Public Function VideoListSearch (

strSearchString as String,

nMaxPages as Int32

) as enumErrorCodes


 

[C#]

public enumErrorCodes VideoListSearch (

string strSearchString,

int nMaxPages

);


 

[C++]

public: enumErrorCodes VideoListSearch (

string strSearchString,

int nMaxPages

);


 

 

Parameter

Description

 

 

strSearchString

String containing the text to search for.

nMaxPages

The search is limited to the given number of pages.

 

 

Return value

 

Value

Meaning

 

 

enumErrorCodes.NOERROR (0)

The method call was successful

Negative value

An error occurred: see the LastError property for further error details or for a list of the possible error values.