3.5 KiB
Prepare everything
Welcome to the NewPipe tutorial. This tutorial will guide you through the process of creating your own NewPipeExtractor service with which NewPipe will gain support for a dedicated streaming service like YouTube, Vimeo or SournCloud. Let's dive right in. ;D
Setup your dev environment
First and foremost you need to meet certain conditions in order to write your own service.
What you need to know
- Basic understanding of git
- Good Java knowledge
- Good understanding of web technology
- Basic understanding about unit testing and JUnit
- Flawless understanding of how to contribute to the NewPipe project
What you need to have
- A dev environment/ide that supports:
- git
- java 8
- gradle
- unit testing
- I highly recomend IDEA Community since it has everything we need.
- A github account
- A loot of patience and excitement ;D
After making sure all these conditions are provided fork the NewPipeExtractor, using the fork button. This way you have your own working repository. Now clone this repository into your local folder in which you want to work in. Next import the cloned project into your ide and run it. If all the checks are green you did everything right, and you are good to go to move on to the next chapter.
Running test in Android Studio
Go to run > edit configurations > add new configuration and select "Gradle". As Gradle Project, select NewPipeExtractor. As task add "test". Now save and you should be able to run.
Inclusion criteria for services
After creating you own service you will need to submit it to our NewPipeExtractor repository. However in order to include your changes you need to follow these rules:
- Stick to our Code contribution guidelines
- Do not send services that present content we don't allow on NewPipe.
- You need to be willing to keep on maintaining your service after submission.
- Be patient and do the requested changes when one of our maintainers rejects your code.
Allowed Content
- Basically anything except NOT allowed content.
- Any kind of porn/NSFW that is allowed according to the US Porn act.
- Advertisement (may be handled specially tho)
NOT allowed Content
- NSFL
- Porn that is not allowed according to US Porn act.
- Any form of violence
- Child pornography
- Media that harms others
- Media that violates human rights
- Copyright infringement/pirated media