url
StringRequired if no playlistVideo URL to play.
splayer://player?url=http://example.com/video.mp4Open SPlayer from any Android app. Play a shared link, a local file or a full playlist with titles, subtitles, HTTP headers and a start position – with a single intent.
// Open a video in SPlayer from your app
val uri = Uri.parse(
"splayer://player" +
"?url=http://example.com/video.mp4" +
"&title=Sample%20Video&position=200"
)
context.startActivity(Intent(Intent.ACTION_VIEW, uri))Pick the entry point that matches where the video lives: a web URL, a file on the device, or a full playlist with subtitles and headers.
Share any HTTP(S) video URL with SPlayer and it starts streaming in the Stream tab.
Open a video already stored on the device through its MediaStore content:// URI.
Play a URL or a full playlist with titles, subtitles, HTTP headers and a start position.
Reserved for future media download use cases. Not implemented yet.
Send a plain HTTP(S) URL with ACTION_SEND – the same intent Android uses when a user shares a link from another app.
Action : Intent.ACTION_SEND
Type : text/plain
Extra : Intent.EXTRA_TEXThttp(s)://<video_url>SPlayer switches to the Stream tab and plays the video from the provided URL.
http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4Open a video stored on the device with ACTION_VIEW and the content:// URI you get from MediaStore.
Action : Intent.ACTION_VIEW
Data scheme : content://content://media/external/video/media/<media_id>content://media/external/video/media/1000029073SPlayer opens the player and plays the video file stored on the device.
The most flexible entry point: play a single URL or a playlist, with an optional title, subtitles, HTTP headers and start position.
Action : Intent.ACTION_VIEW
Data scheme : splayer://playerProvide either url or playlist – at least one of the two is required. All other parameters are optional.
SPlayer opens the player and plays the video or playlist described by the query parameters.
Video URL to play.
splayer://player?url=http://example.com/video.mp4List of videos to play. Each item contains url (required), title (optional) and subs (optional, array of subtitle URLs).
splayer://player?playlist=[
{"url":"http://example.com/video1.mp4","title":"Video One"},
{"url":"http://example.com/video2.mp4","title":"Video Two","subs":["http://sub3.com"]}
]Title shown in the player.
splayer://player?url=http://example.com/video.mp4&title=Sample Video Title with & and !Subtitle URLs to load with the video.
splayer://player?url=http://example.com/video.mp4&subs=["http://sub1.com","http://sub2.com"]Custom HTTP headers. Separate multiple headers with the | character.
splayer://player?url=http://example.com/video.mp4&header=User-Agent: TestAgent|Authorization: Bearer Token123Start position in milliseconds.
splayer://player?url=http://example.com/video.mp4&position=200splayer://player?url=http://example.com/video sample with spaces.mp4
&title=My Sample Video
&subs=["http://sub1.com","http://sub2.com"]
&header=User-Agent: TestAgent|Authorization: Bearer Token123
&position=200splayer://player?playlist=[
{"url":"http://example.com/video1.mp4","title":"Video One"},
{"url":"http://example.com/video2.mp4","title":"Video Two","subs":["http://sub3.com"]}
]
&header=User-Agent: TestAgent|Authorization: Bearer Token123
&position=200Reserved for future media download use cases. Not implemented yet.
Action : Intent.ACTION_VIEW
Data scheme : splayer://downloadLaunch SPlayer from Kotlin with a standard ACTION_VIEW intent.
val intent = Intent(
Intent.ACTION_VIEW,
Uri.parse("splayer://player?url=http://example.com/video.mp4")
)
context.startActivity(intent)val localIntent = Intent(
Intent.ACTION_VIEW,
Uri.parse("content://media/external/video/media/1000029073")
)
context.startActivity(localIntent)Any page opened in Chrome on Android can launch the player deeplink with a link. Use the intent:// form so users without SPlayer are sent to Google Play instead of seeing an error.
<!-- Opens SPlayer, or Google Play if the app is not installed -->
<a href="intent://player?url=https%3A%2F%2Fexample.com%2Fvideo.mp4&title=Sample%20Video#Intent;scheme=splayer;package=com.ttee.leeplayer;S.browser_fallback_url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.ttee.leeplayer;end">
Play in SPlayer
</a><!-- Works when SPlayer is installed; does nothing otherwise -->
<a href="splayer://player?url=https%3A%2F%2Fexample.com%2Fvideo.mp4&title=Sample%20Video">
Play in SPlayer
</a>function openInSPlayer(videoUrl, title) {
// URLSearchParams percent-encodes every value for you
const query = new URLSearchParams({ url: videoUrl, title }).toString();
const fallback = encodeURIComponent(
'https://play.google.com/store/apps/details?id=com.ttee.leeplayer'
);
window.location.href =
`intent://player?${query}#Intent;scheme=splayer;` +
`package=com.ttee.leeplayer;S.browser_fallback_url=${fallback};end`;
}
// Call it from a click handler, not on page load
document.querySelector('#play-button').addEventListener('click', () =>
openInSPlayer('https://example.com/video.mp4', 'Sample Video')
);Chrome only opens apps from a user gesture such as a click. Redirecting automatically on page load is blocked.
Encode url, title, subs, header and playlist values so characters like &, # and spaces do not break the link.
SPlayer is an Android app, so these links do nothing on iOS or desktop browsers. Show them on Android devices only.

Tell us what you are building and we will help you wire up deeplinks, playlists and subtitles.
Email developer support