What I'm trying to get is to select the "url" value of the "quality" is hd720
Component
componentDidMount() { return fetch('https://you-link.herokuapp.com/?url=https://www.youtube.com/watch?v=YGCLs9Bt_KY') .then((response) => response.json()) .then((responseJson) => { this.setState({ isLoading: false, dataSource: responseJson, videoUrl: responseJson[0].url }, function() { }); }) .catch((error) => { console.error(error); }); }
Json Call
Link
find
:responseJson.find(obj => obj.quality === "hd720").url
– Tholle