Copyright © 2005-2023 MultiMedia Soft

Youtube.VideoSearchByIDStreamCountGet method

Previous pageReturn to chapter overviewNext page

Remarks

 

Obtains the number of streams available for the video found through the latest search performed by the Youtube.VideoSearchByID method.

 

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 VideoSearchByIDStreamCountGet (

nType as enumYoutubeStreamType,

ByRef nCount as Int32

) as enumErrorCodes


 

[C#]

public enumErrorCodes VideoSearchByIDStreamCountGet (

enumYoutubeStreamType nType

ref int nCount

);


 

[C++]

public: enumErrorCodes VideoSearchByIDStreamCountGet (

enumYoutubeStreamType nType

int __gc *nCount

);


 

Parameter

Description

 

 

nType

Type of stream.

Supported values are the following:

Mnemonic Value

Value

Meaning

YOUTUBE_STREAM_TYPE_MUXED

0

Muxed stream (Video + Audio)

YOUTUBE_STREAM_TYPE_VIDEO_ONLY

1

Video only stream

YOUTUBE_STREAM_TYPE_AUDIO_ONLY

2

Audio only stream

nCount

Reference that, after returning from the method call, will contain the number of available streams for the given type.

 

 

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred, check the LastError property value in order to get the error code

enumErrorCodes.ERR_NOERROR (0)

The method call was successful