Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'videoResolution' is inaccessible due to 'internal' protection level #10

Open
Alanko5 opened this issue May 23, 2023 · 1 comment · May be fixed by #22
Open

'videoResolution' is inaccessible due to 'internal' protection level #10

Alanko5 opened this issue May 23, 2023 · 1 comment · May be fixed by #22

Comments

@Alanko5
Copy link

Alanko5 commented May 23, 2023

'videoResolution' is inaccessible due to 'internal' protection level

@Jeehut Jeehut linked a pull request Sep 12, 2023 that will close this issue
@Jeehut
Copy link

Jeehut commented Sep 12, 2023

I just needed to access videoResolution as well for the following code:

let maxResolution = 1080
streams.filter { $0.itag.videoResolution <= maxResolution }.highestResolutionStream()

So I've made the field available publicly via #22 (use the main branch in my fork until merged).

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

Successfully merging a pull request may close this issue.

2 participants