Skip to content
This repository has been archived by the owner on Mar 11, 2022. It is now read-only.

(Android working) But not working with IOS 14.* #73

Closed
tyhour opened this issue May 19, 2021 · 5 comments
Closed

(Android working) But not working with IOS 14.* #73

tyhour opened this issue May 19, 2021 · 5 comments

Comments

@tyhour
Copy link

tyhour commented May 19, 2021

I have problem with IOS can't get data response with error below.
TypeError: undefined is not an object (evaluating 'videoDetails.thumbnail.thumbnails
I was console.log in package and I see info = {"player_response": undefined}
Thanks for help.

@tyhour tyhour changed the title (Android working) Not working with IOS 14.* (Android working) But not working with IOS 14.* May 19, 2021
@TylerOlthuizen
Copy link

I'm getting the same error too

@TylerOlthuizen
Copy link

What things have you tried during debugging?

@ninacoder-info
Copy link

same problem it's been working before

@Darguima
Copy link
Contributor

Darguima commented May 20, 2021

I found a workaround. You need edit the package on node_modules so it is undo when you run yarn or npm install. I already created a PR to correct it, just need wait be approved.

Add html5: 1 to the query object on node_modules/react-native-ytdl/lib/info.js, on function getVideoInfoPage (about line 329)

Some like this:

query: {
  video_id: id,
  eurl: VIDEO_EURL + id,
  ps: 'default',
  gl: 'US',
  hl: options.lang || 'en',
  html5: 1
}

I found the solution there:
fent/node-ytdl-core#923 (comment)

@tyhour
Copy link
Author

tyhour commented May 20, 2021

I found a workaround. You need edit the package on node_modules so it is undo when you run yarn or npm install. I already created a PR to correct it, just need wait be approved.

Add html5: 1 to the query object on node_modules/react-native-ytdl/lib/info.js, on function getVideoInfoPage (about line 329)

Some like this:

query: {
  video_id: id,
  eurl: VIDEO_EURL + id,
  ps: 'default',
  gl: 'US',
  hl: options.lang || 'en',
  html5: 1
}

I found the solution there:
fent/node-ytdl-core#923 (comment)

I found a workaround. You need edit the package on node_modules so it is undo when you run yarn or npm install. I already created a PR to correct it, just need wait be approved.

Add html5: 1 to the query object on node_modules/react-native-ytdl/lib/info.js, on function getVideoInfoPage (about line 329)

Some like this:

query: {
  video_id: id,
  eurl: VIDEO_EURL + id,
  ps: 'default',
  gl: 'US',
  hl: options.lang || 'en',
  html5: 1
}

I found the solution there:
fent/node-ytdl-core#923 (comment)

Now I used ytdl-core with rest api for my app right now. I thinks this package not update anymore. So issue has been fixed for me.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants