Copyright © 2001-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 Youtube object section.

 

 

Syntax

 

[Visual Basic]

control.Youtube.VideoSearchByIDStreamCountGet (

nType as enumYoutubeStreamType,

ByRef nCount as Integer

) as enumErrorCodes


 

[C++]

short control.Youtube.VideoSearchByIDStreamCountGet (

short nType

short *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