# Android Processing app playing sequence of Youtube videos

**URL:** https://discourse.processing.org/t/android-processing-app-playing-sequence-of-youtube-videos/20180
**Category:** Processing for Android
**Created:** [April 26, 2020, 3:44pm UTC](https://discourse.processing.org/t/android-processing-app-playing-sequence-of-youtube-videos/20180 "2020-04-26T15:44:07Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![MonteliaRO](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/monteliaro/32/8303_2.png) [@MonteliaRO](https://discourse.processing.org/u/MonteliaRO)
#### Post date: [April 26, 2020, 3:44pm UTC](https://discourse.processing.org/t/android-processing-app-playing-sequence-of-youtube-videos/20180/1 "2020-04-26T15:44:07Z")

</div>

hello I would like to play a video in the processing app on Android “[https://play.google.com/store/apps/details?id=com.calsignlabs.apde](https://play.google.com/store/apps/details?id=com.calsignlabs.apde)” in my app but I don’t know how to add a library can someone help me please?

---

<div class="post-metadata">

### Author: ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)
#### Post date: [April 26, 2020, 4:25pm UTC](https://discourse.processing.org/t/android-processing-app-playing-sequence-of-youtube-videos/20180/2 "2020-04-26T16:25:50Z")

</div>

You can find a working sketch on my [repo here](https://github.com/EmmanuelPil/Android-java-code-utilities-widgets-for-Processing-for-Android).  
If you get it working please comment on which device and what Android mode.

---

<div class="post-metadata">

### Author: ![MonteliaRO](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/monteliaro/32/8303_2.png) [@MonteliaRO](https://discourse.processing.org/u/MonteliaRO)
#### Post date: [April 26, 2020, 5:20pm UTC](https://discourse.processing.org/t/android-processing-app-playing-sequence-of-youtube-videos/20180/3 "2020-04-26T17:20:51Z")

</div>

I want to make an app that is built like netflix

Edit: can you Help me?

---

<div class="post-metadata">

### Author: ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)
#### Post date: [April 26, 2020, 5:27pm UTC](https://discourse.processing.org/t/android-processing-app-playing-sequence-of-youtube-videos/20180/4 "2020-04-26T17:27:19Z")

</div>

And what server are you planning to use? Youtube or alike? 😃

---

<div class="post-metadata">

### Author: ![MonteliaRO](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/monteliaro/32/8303_2.png) [@MonteliaRO](https://discourse.processing.org/u/MonteliaRO)
#### Post date: [April 26, 2020, 5:31pm UTC](https://discourse.processing.org/t/android-processing-app-playing-sequence-of-youtube-videos/20180/5 "2020-04-26T17:31:06Z")

</div>

yes, I want to do it so that I can search for videos from YouTube in my app but that there are only short films and films in general

---

<div class="post-metadata">

### Author: ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)
#### Post date: [April 26, 2020, 5:36pm UTC](https://discourse.processing.org/t/android-processing-app-playing-sequence-of-youtube-videos/20180/6 "2020-04-26T17:36:36Z")

</div>

You can play with Webview on the repo linked above. Then you also will need to plan a search algorithm. The WebView can be a part of the screen so you have place to put buttons and so on.

---

<div class="post-metadata">

### Author: ![MonteliaRO](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/monteliaro/32/8303_2.png) [@MonteliaRO](https://discourse.processing.org/u/MonteliaRO)
#### Post date: [April 26, 2020, 5:43pm UTC](https://discourse.processing.org/t/android-processing-app-playing-sequence-of-youtube-videos/20180/7 "2020-04-26T17:43:12Z")

</div>

okay can you help me with this

---

<div class="post-metadata">

### Author: ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)
#### Post date: [April 26, 2020, 5:45pm UTC](https://discourse.processing.org/t/android-processing-app-playing-sequence-of-youtube-videos/20180/8 "2020-04-26T17:45:34Z")

</div>

You need to play around with the tools there. When you have planned something post some code and we will see.

---

<div class="post-metadata">

### Author: ![MonteliaRO](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/monteliaro/32/8303_2.png) [@MonteliaRO](https://discourse.processing.org/u/MonteliaRO)
#### Post date: [April 26, 2020, 5:46pm UTC](https://discourse.processing.org/t/android-processing-app-playing-sequence-of-youtube-videos/20180/9 "2020-04-26T17:46:19Z")

</div>

Okay thanks you 🙂

---

<div class="post-metadata">

### Author: ![MonteliaRO](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/monteliaro/32/8303_2.png) [@MonteliaRO](https://discourse.processing.org/u/MonteliaRO)
#### Post date: [April 26, 2020, 6:06pm UTC](https://discourse.processing.org/t/android-processing-app-playing-sequence-of-youtube-videos/20180/10 "2020-04-26T18:06:02Z")

</div>

```auto
int s = 0;
PImage startlogo;

void setup(){
  fullScreen();
  startlogo = loadImage("logo.png");
  startlogo.resize(displayWidth, displayHeight);
}

void draw(){
  if(s==0){
    background(startlogo);
    delay(2000);
    s = 1;
  }
  if(s==1){
    background(0);
  }
}

```

Why doesn’t the splash start screen work?

---

<div class="post-metadata">

### Author: ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)
#### Post date: [April 26, 2020, 6:25pm UTC](https://discourse.processing.org/t/android-processing-app-playing-sequence-of-youtube-videos/20180/11 "2020-04-26T18:25:00Z")

</div>

Using delay() stops the whole process.  
Do it like this.

```auto
int start_time;
PImage startlogo; 

void setup() { 
  fullScreen(); 
  startlogo = loadImage("cormas.png"); 
  startlogo.resize(displayWidth, displayHeight);
  start_time = millis();
} 

void draw() { 
  background(startlogo); 
  if(millis()-start_time > 2000){
     background(0);
  }
}

```

---

<div class="post-metadata">

### Author: ![MonteliaRO](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/monteliaro/32/8303_2.png) [@MonteliaRO](https://discourse.processing.org/u/MonteliaRO)
#### Post date: [April 26, 2020, 6:47pm UTC](https://discourse.processing.org/t/android-processing-app-playing-sequence-of-youtube-videos/20180/12 "2020-04-26T18:47:31Z")

</div>

And can i get a animation with the picture please?

---

<div class="post-metadata">

### Author: ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)
#### Post date: [April 26, 2020, 6:49pm UTC](https://discourse.processing.org/t/android-processing-app-playing-sequence-of-youtube-videos/20180/13 "2020-04-26T18:49:09Z")

</div>

Of course, whatever you imagine.

---

<div class="post-metadata">

### Author: ![MonteliaRO](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/monteliaro/32/8303_2.png) [@MonteliaRO](https://discourse.processing.org/u/MonteliaRO)
#### Post date: [April 26, 2020, 6:50pm UTC](https://discourse.processing.org/t/android-processing-app-playing-sequence-of-youtube-videos/20180/14 "2020-04-26T18:50:52Z")

</div>

and how does it work?

Sorry, I haven’t been programming that long

---

<div class="post-metadata">

### Author: ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)
#### Post date: [April 26, 2020, 6:51pm UTC](https://discourse.processing.org/t/android-processing-app-playing-sequence-of-youtube-videos/20180/15 "2020-04-26T18:51:50Z")

</div>

hehe. First you need to know what you want.

---

<div class="post-metadata">

### Author: ![MonteliaRO](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/monteliaro/32/8303_2.png) [@MonteliaRO](https://discourse.processing.org/u/MonteliaRO)
#### Post date: [April 26, 2020, 6:53pm UTC](https://discourse.processing.org/t/android-processing-app-playing-sequence-of-youtube-videos/20180/16 "2020-04-26T18:53:31Z")

</div>

I need an animation on the startscreen. it should be black at the beginning and then slowly become transparent

---

<div class="post-metadata">

### Author: ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)
#### Post date: [April 26, 2020, 6:55pm UTC](https://discourse.processing.org/t/android-processing-app-playing-sequence-of-youtube-videos/20180/17 "2020-04-26T18:55:26Z")

</div>

Use [tint()](https://processing.org/reference/tint_.html) in the draw() loop.

---

<div class="post-metadata">

### Author: ![MonteliaRO](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/monteliaro/32/8303_2.png) [@MonteliaRO](https://discourse.processing.org/u/MonteliaRO)
#### Post date: [April 27, 2020, 8:48am UTC](https://discourse.processing.org/t/android-processing-app-playing-sequence-of-youtube-videos/20180/18 "2020-04-27T08:48:13Z")

</div>

I have now done the animation. What would be the next step now? And Good Morning 😂 🙂

Maybe you can be contacted somewhere else?

---

<div class="post-metadata">

### Author: ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)
#### Post date: [April 27, 2020, 12:50pm UTC](https://discourse.processing.org/t/android-processing-app-playing-sequence-of-youtube-videos/20180/19 "2020-04-27T12:50:21Z")

</div>

> [@MonteliaRO](#):
>
> Maybe you can be contacted somewhere else?

Good morning.  
No, the forum is the place to post codes, so that it can be searched by others, and make it unnececary to answer the same questions over and over.  
Normally P4A is used to play graphical sketches or games on an Android device.  
Your project is more difficult. You have to work with views. If you plan to be, in the future, an Android developer, I would recommend learning to code on Android Studio and use Processing there as an excellent graphics library.  
If you however only need it for a personal project, we can go further. It is possible to work with views on P4A, but you will not use the main structure on which Android apps are built. Namely, the XML structure where views and other data are organized in specific files. On P4A you have to code it programmatically.  
Now the first thing you have to do is setting the Layout parameters differently so that you have a free space below your video. Change the webView example and see if you understand what is happening.

---

<div class="post-metadata">

### Author: ![MonteliaRO](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/monteliaro/32/8303_2.png) [@MonteliaRO](https://discourse.processing.org/u/MonteliaRO)
#### Post date: [April 27, 2020, 1:50pm UTC](https://discourse.processing.org/t/android-processing-app-playing-sequence-of-youtube-videos/20180/20 "2020-04-27T13:50:52Z")

</div>

The project is more like that for my family and friends

[Next page](https://discourse.processing.org/t/android-processing-app-playing-sequence-of-youtube-videos/20180.md?page=2)
