diff --git a/docs/README.md b/docs/README.md index 665221c..baceb8e 100644 --- a/docs/README.md +++ b/docs/README.md @@ -81,7 +81,13 @@ let data = await search('Rick Roll', { limit: 1, source { spotify : "tracks" } } _This is basic to create a stream from a youtube or soundcloud url._ ```js -let source = await stream("url") // This will create a stream Class. +let source = await stream("url") // This will create a stream Class. Highest Quality + +let source = await stream("url", { quality : 0 }) // Lowest quality + +let source = await stream("url", { quality : 1 }) // Next to Lowest quality. + +let source = await stream("url", { cookie: COOKIE }) //This will create a stream Class and also give cookies. let resource = createAudioResource(source.stream, { inputType : source.type @@ -95,10 +101,13 @@ _This is basic to create a stream from a info [ from [video_info](https://github **Note :** Here, cookies are required only for retrying purposes. ```js - let source = await stream_from_info(info) // This will create a stream Class from video_info or SoundCoudTrack Class. +let source = await stream_from_info(info) // This will create a stream Class from video_info or SoundCoudTrack Class. Highest Quality + +let source = await stream_from_info(info, { quality : 0 }) // Lowest quality +let source = await stream_from_info(info, { quality : 1 }) // Next to Lowest quality. - let source = await stream_from_info(info, { cookie }) //This will create a stream Class and also give cookies if retrying. +let source = await stream_from_info(info, { cookie: COOKIE }) //This will create a stream Class and also give cookies if retrying. let resource = createAudioResource(source.stream, {