How to use the react-native-ytdl.validateID function in react-native-ytdl

To help you get started, we’ve selected a few react-native-ytdl examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github AbelTesfaye / dingo / src / BL / Services / event-handler-service.js View on Github external
[shouldFetchCurrent ? trackCurrent : {}, ...tracksToRight, ...tracksToLeft].map((item, index) => {
						if (item.videoId && ytdl.validateID(item.videoId)) {
							this._ytdlGetInfo(
								item.videoId,
								info => {
									console.log(JSON.stringify(info));
									const highestQualityAudio = this._filterHighestQualityAudio(info.formats);

									this._updateTrackPlayerQueueItem(
										tracks,
										item,
										{
											url: highestQualityAudio,

											title: info.title,
											artist: info.author.name,
											artwork: info.thumbnail_url,
										},

react-native-ytdl

YouTube video and audio stream extractor for react native.

ISC
Latest version published 3 years ago

Package Health Score

45 / 100
Full package analysis