Developer docsUpdated January 12, 2026

SPlayer Deeplink & Intent API

Open 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.

Kotlin
// 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))

Send a plain HTTP(S) URL with ACTION_SEND – the same intent Android uses when a user shares a link from another app.

Intent definition
Action : Intent.ACTION_SEND
Type   : text/plain
Extra  : Intent.EXTRA_TEXT
Format
http(s)://<video_url>

Behavior

SPlayer switches to the Stream tab and plays the video from the provided URL.

Example
http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4

02 Local video file (content URI)

Open a video stored on the device with ACTION_VIEW and the content:// URI you get from MediaStore.

Intent definition
Action      : Intent.ACTION_VIEW
Data scheme : content://
Format
content://media/external/video/media/<media_id>
Example
content://media/external/video/media/1000029073

Behavior

SPlayer 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.

Intent definition
Action      : Intent.ACTION_VIEW
Data scheme : splayer://player

Required

Provide either url or playlist – at least one of the two is required. All other parameters are optional.

Behavior

SPlayer opens the player and plays the video or playlist described by the query parameters.

Parameters

url

StringRequired if no playlist

Video URL to play.

splayer://player?url=http://example.com/video.mp4

playlist

JSON ArrayRequired if no url

List 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

StringOptional

Title shown in the player.

splayer://player?url=http://example.com/video.mp4&title=Sample Video Title with & and !

subs

JSON Array (String)Optional

Subtitle URLs to load with the video.

splayer://player?url=http://example.com/video.mp4&subs=["http://sub1.com","http://sub2.com"]

header

StringOptional

Custom HTTP headers. Separate multiple headers with the | character.

splayer://player?url=http://example.com/video.mp4&header=User-Agent: TestAgent|Authorization: Bearer Token123

position

Integer (ms)Optional

Start position in milliseconds.

splayer://player?url=http://example.com/video.mp4&position=200

Full examples

Single video
splayer://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=200
Playlist
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"]}
]
&header=User-Agent: TestAgent|Authorization: Bearer Token123
&position=200
Reserved

Reserved for future media download use cases. Not implemented yet.

Intent definition
Action      : Intent.ACTION_VIEW
Data scheme : splayer://download

05 Sample usage in Android

Launch SPlayer from Kotlin with a standard ACTION_VIEW intent.

Kotlin · Player deeplink
val intent = Intent(
    Intent.ACTION_VIEW,
    Uri.parse("splayer://player?url=http://example.com/video.mp4")
)
context.startActivity(intent)
Kotlin · Local video file
val localIntent = Intent(
    Intent.ACTION_VIEW,
    Uri.parse("content://media/external/video/media/1000029073")
)
context.startActivity(localIntent)

06 Open SPlayer from a web page

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.

HTML · intent link (recommended)
<!-- 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>
HTML · splayer:// link
<!-- 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>
JavaScript · build the link
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')
);

Trigger it from a tap

Chrome only opens apps from a user gesture such as a click. Redirecting automatically on page load is blocked.

URL-encode every value

Encode url, title, subs, header and playlist values so characters like &, # and spaces do not break the link.

Android only

SPlayer is an Android app, so these links do nothing on iOS or desktop browsers. Show them on Android devices only.

SPlayer app icon

Need help integrating SPlayer?

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

Email developer support