Youtubeexplode: Get video data and send to MemoryStream

Created on 28 Jul 2018  路  2Comments  路  Source: Tyrrrz/YoutubeExplode

Hi there- is it possible to get a videos data, and instead of writing it to a path, write it to a MemoryStream instead? Thanks!

question

Most helpful comment

GetMediaStreamAsync
var stream = await YoutubeClient.GetMediaStreamAsync(info)
Or
DownloadMediaStreamAsync

var ms = new MemoryStream();
YoutubeClient.DownloadMediaStreamAsync(info, ms);

All 2 comments

GetMediaStreamAsync
var stream = await YoutubeClient.GetMediaStreamAsync(info)
Or
DownloadMediaStreamAsync

var ms = new MemoryStream();
YoutubeClient.DownloadMediaStreamAsync(info, ms);

Wonderful! thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

NoobInTraining picture NoobInTraining  路  5Comments

PhapHanh picture PhapHanh  路  4Comments

nk34player picture nk34player  路  4Comments

jvitoroc picture jvitoroc  路  8Comments

severino65 picture severino65  路  3Comments