Copyright © 2001-2023 MultiMedia Soft

Youtube.VideoSearchByIDStreamInfoGet method

Previous pageReturn to chapter overviewNext page

Remarks

 

Obtains a specific information related to the given video stream of the specified type, belonging to a 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.VideoSearchByIDStreamInfoGet (

nType as enumYoutubeStreamType,

nIndex as Integer,

nInfo as enumYoutubeStreamInfo

) as String


 

[C++]

BSTR control.Youtube.VideoSearchByIDStreamInfoGet (

short nType,

short nIndex,

short nInfo

);


 

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

nIndex

Zero-based index of the stream. The maximum number of available streams can be obtained through the Youtube.VideoSearchByIDStreamCountGet method.

nInfo

Type of information that needs to be retrieved.

Supported values are the following:

Mnemonic Value

Value

Meaning

YOUTUBE_STREAM_INFO_MIMETYPE

0

Stream video mime type

YOUTUBE_STREAM_INFO_VIDEO_TYPE

1

Stream video type

YOUTUBE_STREAM_INFO_VIDEO_QUALITY

2

Stream video quality

YOUTUBE_STREAM_INFO_VIDEO_FRAMERATE

3

Stream video frame rate

YOUTUBE_STREAM_INFO_VIDEO_RESOLUTION

4

Stream video resolution

YOUTUBE_STREAM_INFO_VIDEO_WIDTH

5

Stream video width

YOUTUBE_STREAM_INFO_VIDEO_HEIGTH

6

Stream video height

YOUTUBE_STREAM_INFO_VIDEO_IS3D

7

Stream video is 3D

YOUTUBE_STREAM_INFO_AUDIO_TYPE

8

Stream audio type

YOUTUBE_STREAM_INFO_AUDIO_BITRATE

9

Stream audio bitrate

YOUTUBE_STREAM_INFO_AUDIO_QUALITY

10

Stream audio quality

YOUTUBE_STREAM_INFO_AUDIO_CHANNELS

11

Stream audio channels

YOUTUBE_STREAM_INFO_SIZE

12

Stream size

YOUTUBE_STREAM_INFO_EXTENSION

13

Stream file extension

 

 

Return value

 

Value

Meaning

 

 

Empty string

The information is not available or an error occurred (see the LastError property for further error details)

Valid string

String containing the requested information