Launch RTSP stream in VLC automatically with Tasker

2,053 views
Skip to first unread message

Jon Parker

unread,
Jan 6, 2020, 9:29:48 AM1/6/20
to Tasker
Greetings.

I have Tasker. I have VLC for Android. I have a valid RTSP stream URL as part of my home CCTV system. The RTSP stream plays beuatifully in VLC.

I want to create a shortcut that will open VLC and immediately launch the RTSP stream.

I think this I need to do something with an "intent."

I am not a dev. I am looking for direct instructions. I am happy creating things in Tasker, but I am out of my depth trying to understand "intent."

Cheers in advance.

Jon

Matevz Leskovsek

unread,
Jan 6, 2020, 3:21:55 PM1/6/20
to tas...@googlegroups.com
rtsp to live stream (broadcast) or receive and watch? I think you need
this action sent to package org.violan.vlc You can do that in tasker
in package tools or something, just search for "intent" in the search
form in tasker actions.. somewhere you'll need to put your stream url
if receiving or rtmp credentials if streaming
> --
> You received this message because you are subscribed to the Google Groups "Tasker" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/c44da08c-b2e1-48a8-9f95-cc0ac7724960%40googlegroups.com.

Matevz Leskovsek

unread,
Jan 6, 2020, 3:26:36 PM1/6/20
to tas...@googlegroups.com
I meant this action: Intent.ACTION_VIEW ("android.intent.action.VIEW")
Copied from here:
https://wiki.videolan.org/Android_Player_Intents/#Intent_action

Jon Parker

unread,
Jan 7, 2020, 6:32:44 AM1/7/20
to Tasker
I meant this action: Intent.ACTION_VIEW ("android.intent.action.VIEW")
Copied from here:
https://wiki.videolan.org/Android_Player_Intents/#Intent_action


Yes I've looked at that page, and I don't really understand it.

In Tasker I have created a task under the heading of "send intent" with the following parameters:

Action: android.action.view.INTENT
Data: [stream URL]
Package: org.videolan.vlc
Target: Activity
all other parameters within the task are left blanl or at their default.

When I run this task the screen goes blank for a tenth of a second, then comes back to tasker, but if I then bring up all running apps VLC is there with the stream playing corrently, but I want VLC in the foreround, not the background.

Jon

Jon

Matevz Leskovsek

unread,
Jan 7, 2020, 9:51:30 AM1/7/20
to tas...@googlegroups.com
if you just run the vlc again (from tasker) would it put it in
foreground? You would need to put a "wait" of 1 second between running
intent and running vlc again I guess..

Hope someone else has a better idea how to put an app in the
foreground on android with tasker?
> --
> You received this message because you are subscribed to the Google Groups "Tasker" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/8a90b4b0-79db-484f-b34e-9447d971ad80%40googlegroups.com.

João Dias

unread,
Jan 8, 2020, 8:54:50 AM1/8/20
to tas...@googlegroups.com
Maybe use the Browse URL action with the URL?

Thank you for your contact.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias

Jon Parker

unread,
Jan 8, 2020, 11:18:05 AM1/8/20
to Tasker
Maybe use the Browse URL action with the URL?


Hi, that seems to have the same result as the "send intent" in that the screen goes blank for a blink of an eye, then returns to tasker. The stream is then playing in the background in VLC and if I switch to it manually then it works.

I still can't seem to bring VLC to the foreground after starting the stream.

An alternative would be to find a RTSP player that can smply start up and play a URL straight away. The I woulnd't need Tasker to do anything!

Kind regards
Jon

Matevz Leskovsek

unread,
Jan 8, 2020, 12:57:33 PM1/8/20
to tas...@googlegroups.com
VLC sure has some starting arguments to run it from shell and those could provide opening url. You save such command in .sh file and.. i dont know, can we run .sh without root?

Anyhow I would still try just waiting few seconds in tasker and then launching VLC from tasker to bring it to foreground 

--
You received this message because you are subscribed to the Google Groups "Tasker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.

João Dias

unread,
Jan 10, 2020, 7:30:58 AM1/10/20
to tas...@googlegroups.com
What if you use Browse URL, wait 2 seconds and then launch the VLC app with Tasker?

Jon Parker

unread,
Jan 14, 2020, 11:46:26 AM1/14/20
to Tasker
What if you use Browse URL, wait 2 seconds and then launch the VLC app with Tasker?

Same result, screen flashes then VLC re-appears on it's start-up page.

Regards
Jon 

Matevz Leskovsek

unread,
Jan 14, 2020, 3:05:24 PM1/14/20
to tas...@googlegroups.com
can you try in the last step (launch VLC) remove the "always start new instance" checkmark, if it is there?

--
You received this message because you are subscribed to the Google Groups "Tasker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.

Jon Parker

unread,
Jan 16, 2020, 10:35:30 AM1/16/20
to Tasker
can you try in the last step (launch VLC) remove the "always start new instance" checkmark, if it is there?

I already did that, the box isn't checked.

Jon 

ktmom

unread,
Jan 16, 2020, 12:22:55 PM1/16/20
to Tasker
Does VLC have permission to display over other apps?

ktmom

unread,
Jan 16, 2020, 1:06:15 PM1/16/20
to Tasker
This works for me opening and displaying with vlc in front
<Open rtsp stream in vlc>
A1: Send Intent [
Action:android.intent.action.VIEW
Cat:None
Mime Type:
Data: rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov
Extra:
Extra:
Extra:
Package: org.videolan.vlc
Class:
Target: Activity
]

Jon Parker

unread,
Jan 18, 2020, 1:25:04 PM1/18/20
to Tasker
That is exactly what I have. Only difference is my stream is RTSP stream, not a file, but I can't see that making a difference. No matter what I try I always end up with VLC player on it's menu screen. If I run the task from a clean boot, i.e. with no possibility of VLC running in the background somehow then I get the stream for a few seconds, then VLC player takes me back to it's main menu, as if I had laucnhed the app by clicking on it.

I give up!

Jon
Reply all
Reply to author
Forward
0 new messages