-
Notifications
You must be signed in to change notification settings - Fork 17
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
Examples in documentation needed #13
Comments
From the README:
Then to import things from it do I agree that documentation is needed |
Maybe someone can write a new chapter about using the extractor outside NewPipe. As @Stypox suggested, it should contain:
|
Thank you very much for the speedy response, I shall try this out and see if it works. Will come back if error occurs again. |
I am having a problem where when I follow the example that @Stypox gave,my nativescript application says that :
I think that it is having difficulty understanding the code around here with getInstance() in the test file: NewPipe.init(Downloader.getInstance(), new Localization("GB", "en"));
extractor = (YoutubeStreamExtractor) YouTube
.getStreamExtractor("https://www.youtube.com/watch?v=YQHsXMglC9A");
extractor.fetchPage(); |
Correct me if I am wrong, but isn't nativescript based on JS? This matches the log. |
Yes it's written in JavaScript but it is possible to port over the test
code to use the library,which is why I'm using it. I haven't found any
other alternative than newpipe extractor to extract videos from. Most libs
are unreliable which is why I picked new pipe. Is there any way I could fix
this error to your knowledge?
If not, I'll have to abandon using the repo.
Thanks for your help.
…On Sat, 17 Aug 2019, 22:12 Tobias Groza, ***@***.***> wrote:
Correct me if I am wrong, but isn't nativescript basde on JS? This matches
the log.
Cannot read property 'getInstance' of undefined is a JS error. The
extractor is written in Java.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#13?email_source=notifications&email_token=AKHDUOHPLCNENQY3QNDZXA3QFBST5A5CNFSM4IMQKCM2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4QTRRQ#issuecomment-522270918>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AKHDUOAV6AWP2X6URMBDB2LQFBST5ANCNFSM4IMQKCMQ>
.
|
I am using the library in nativescript which is why it's written in js.
…On Sat, 17 Aug 2019, 22:24 John Wall, ***@***.***> wrote:
Yes it's written in JavaScript but it is possible to port over the test
code to use the library,which is why I'm using it. I haven't found any
other alternative than newpipe extractor to extract videos from. Most libs
are unreliable which is why I picked new pipe. Is there any way I could fix
this error to your knowledge?
If not, I'll have to abandon using the repo.
Thanks for your help.
On Sat, 17 Aug 2019, 22:12 Tobias Groza, ***@***.***> wrote:
> Correct me if I am wrong, but isn't nativescript basde on JS? This
> matches the log.
> Cannot read property 'getInstance' of undefined is a JS error. The
> extractor is written in Java.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#13?email_source=notifications&email_token=AKHDUOHPLCNENQY3QNDZXA3QFBST5A5CNFSM4IMQKCM2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4QTRRQ#issuecomment-522270918>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AKHDUOAV6AWP2X6URMBDB2LQFBST5ANCNFSM4IMQKCMQ>
> .
>
|
Noone can guarantee transpiled code works. Normally changes are required to make that work. That applies to tools like e.g., emscripten when transpiling larger chunks of code, such as for instance a game engine. Generally I'd say transpiled code can't be supported by the team. They're trying their best, though. @johnny-stevie I'd recommend you to share your a link to your repository. Please note that this is GPL licensed code, so you're obliged to put your own code under the same library, even if transpiled. @Stypox @TobiGr is there any quick test code @johnny-stevie could use to check whether the transpiled library works at all? |
@johnny-stevie: You shouldn't use the |
see Using Newpipe Extractor |
As a beginner at using NewPipeExtractor, i have generally no clue how to properly use the library in my project. Could you give some code example of downloading video/audio of Youtube video with an example of how to import it into the file?
I get errors when i import with
com.github.TeamNewPipe.NewPipeExtractor
What is problem here?
Any help is greatly appreciated.
The text was updated successfully, but these errors were encountered: