Any link to one of your channel's streams can open right in Emdalex Streams: the app switches to the tab the stream is on now — Scheduled, Ready, Live or Completed — scrolls to it and outlines it in red for a moment. Works on iPhone and Android.
The same works from any app that shares a link: Safari, Messages, Mail, WhatsApp, Telegram, Notes.
The same works from Chrome, Gmail, Messages, WhatsApp, Telegram — wherever there is Share for a link or text.
All the usual forms of a YouTube video link — the app picks the 11-character video ID out of it:
https://youtu.be/VIDEO_ID (what the YouTube app shares, with or without ?si=…)https://www.youtube.com/watch?v=VIDEO_IDhttps://www.youtube.com/live/VIDEO_IDhttps://www.youtube.com/shorts/VIDEO_ID, /embed/VIDEO_ID; m.youtube.com tooA link inside a longer text (“Join us tonight: https://youtu.be/…”) works as well.
Emdalex Streams registers its own link that opens a stream directly, without the share sheet:
emdalex://open?v=VIDEO_ID
Use it from your own app, a web page, a QR code, an automation or a notification — for example, a club or school app that schedules streams through the YouTube API and lets its users jump to a stream in Emdalex Streams to go live with it. The behavior is the same as with sharing: the right tab, the row outlined, sign-in first if needed, Stream not found for another channel.
let url = URL(string: "emdalex://open?v=\(videoID)")!
if UIApplication.shared.canOpenURL(url) {
UIApplication.shared.open(url)
} else {
// Emdalex Streams is not installed: open the stream in YouTube
UIApplication.shared.open(URL(string: "https://youtu.be/\(videoID)")!)
}
For canOpenURL add emdalex to LSApplicationQueriesSchemes in your Info.plist. In the Shortcuts app, the Open URLs action with the same link does the job without code.
val intent = Intent(Intent.ACTION_VIEW, Uri.parse("emdalex://open?v=$videoId"))
try {
startActivity(intent)
} catch (e: ActivityNotFoundException) {
// Emdalex Streams is not installed: open the stream in YouTube
startActivity(Intent(Intent.ACTION_VIEW, Uri.parse("https://youtu.be/$videoId")))
}
On Android 11 and later, to check for the app in advance, declare it in your manifest: <queries><package android:name="com.skdev.emdalex" /></queries>. You can also send the YouTube link as text with Intent.ACTION_SEND to the package com.skdev.emdalex.
<a href="emdalex://open?v=VIDEO_ID">Open in Emdalex Streams</a>
A tap on such a link opens the app on a phone where it is installed; the browser may ask to confirm. Where it is not installed nothing happens, so put an ordinary YouTube link next to it.
The rules: VIDEO_ID is the 11-character YouTube video ID (letters, digits, - and _). The link only opens the app on the stream — it never starts, changes or deletes anything by itself.