Youtube Play/Pause/Rewind

181 views
Skip to first unread message

Pablo Bertu

unread,
Feb 19, 2018, 7:26:27 PM2/19/18
to MIT App Inventor Forum
Hi!

Is there a way to programatically play, pause and (ideally) set the position point in a youtube video being played? I don´t care about the video, I´m only interested in the audio.

For MP3s local files I can use Taifun´s Player extension. But for Youtube.. not a clue!

Can we download a youtube audio to SD (saving it as MP3) without playing it? That would be a workaround.

Here are some apps that claim to do so:


Thanks in advance!

Bertu

SteveJG

unread,
Feb 20, 2018, 9:13:12 AM2/20/18
to MIT App Inventor Forum
I do not know.  The following might help you figure this out:

1)  Use the Search for messages block at the top of this page to see what previous discussion of Youtube have taken place.   Your issue might already have been solved.  Search   YouTube.

2)   YouTube has an api.  What anyone can do using any compiler is described here 

YouTube | Google Developers



using INTENTS ...what an App Inventor developer uses when he/she uses the Activity Starter.  

I expect what you want to do might not be possible but have never tried.  So try.  Also return here to the Forum as others might have a specific solution.

Good luck.


Regards,
Steve

Pablo Bertu

unread,
Feb 20, 2018, 9:37:27 AM2/20/18
to MIT App Inventor Forum
Thanks Steve!

I did the search before posting, but could not find anything like what I´m trying to do.

I think that the limitation of intents using ActivityStarter is that once that you launch the activity, you lose most control over it. I couldn´t find how to pause a youtube VIEW intent, for instance. Also I would like to keep control of the playing inside the AI2 app (play, pause, rewind X seconds).

Maybe it´s just something not supported. AI2 is great anyway!! :)

Best regards,

Bertu

SteveJG

unread,
Feb 20, 2018, 9:57:09 AM2/20/18
to MIT App Inventor Forum
Yes, using AS leaves the AI environment.

Perhaps try:  

Pablo Bertu

unread,
Feb 20, 2018, 11:07:01 AM2/20/18
to MIT App Inventor Forum
 I guess it would be the same situation... by calling the Webviewer, you lose control of the video playing -in terms of the AI2 app, I mean.

It looks that I will have to restrain operation to 1) save youtube to MP3 local file using an external app, and 2) control the playing of the MP3 file with Taifun´s extension (because it can set the playing instant, so it´s easy to rewind or fast forward).

Thanks again, Steve!

Bertu

Juan Antonio

unread,
Feb 20, 2018, 12:52:41 PM2/20/18
to MIT App Inventor Forum
Here an extension about Youtube (paid) (stop, pause, play)


other extension (free) but without controls

Pablo Bertu

unread,
Feb 20, 2018, 4:35:30 PM2/20/18
to MIT App Inventor Forum
Gracias Juan!

I´m checking with Andres (the developer) if ithe paid version can set the position in the video timeline.

Saludos,

Bertu

Pablo Bertu

unread,
Feb 20, 2018, 4:40:59 PM2/20/18
to MIT App Inventor Forum
No, it can´t  :(


Reply all
Reply to author
Forward
0 new messages