Player
Video plays either inside the mini-app, with the Bitmovin Web SDK and TrueVisions' own controls, or in your native player after a hand-off. The playback mode is configured per partner by TrueVisions.
Playback modes
| Mode | What happens on Watch Now / an episode / a live channel |
|---|---|
app | Default. The mini-app opens its own full-screen landscape player (/play/[id] or /watch/[channelId]). Your app receives open-content as a notification, then orientation, playback-state and eventually close. |
host | The mini-app posts open-content and does nothing else. Your app plays the title in its native player using the id / episodeId / channelCode. |
Ask TrueVisions to set the mode for your partner slug. It is not something the host can switch at runtime.
Player screens
| URL | Screen |
|---|---|
/[lang]/[partner]/play/[id]?ep=[episodeId]&embed=1 | Full-screen player for a title. Without ep a series starts at its first episode. Episodes auto-advance. |
/[lang]/[partner]/watch/[channelId]?embed=1 | Live channel player. |
Both can be deep-linked directly, for example from a push notification. The controls are TrueVisions' own: close, mute, ±10 s, play/pause, seek bar, and sheets for Episodes, Audio & Subtitles, Info, Video Quality and Next Episode.
https://mini-app.truevisions.co.th/th/trueapp/play/7f3e…?ep=ep-12&embed=1Lifecycle seen by the host
open-content → notification (mode app)
orientation → "landscape" rotate / lock the WebView
playback-state → "buffering" … "playing" … "paused" …
playback-error → only on failure
orientation → "portrait" viewer tapped X
close → dismiss the WebView- Send
pausewhen your app is backgrounded andplaywhen it returns. See the bridge. - The player stays inside the WebView, so keep the WebView full-bleed while landscape. On Android the player asks for fullscreen on the first tap; this only works if your WebView supports it.
- If your app does not rotate, the player turns itself 90° inside the WebView when the WebView is still portrait. See Rotate for the player.
- Playback needs the WebView settings from Install, in particular autoplay without a gesture and inline playback.
Entitlement, previews and subscriptions
The stream is resolved server-side with the viewer's TrueVisions token from Authentication. What the viewer gets depends on the title's tier and whether they are signed in.
| Situation | Behaviour |
|---|---|
| Signed out, or the token expired | The player never opens: like every page, it first sends the viewer to sign in (a token that expires mid-playback does the same). |
| Token rejected by the stream lookup | Nothing plays, free titles included. The player shows "Sign in to watch"; Sign In posts sign-in in a WebView, or restarts TrueID sign-in in a browser. |
| Signed in and entitled | Plays in full. |
| Signed in, not entitled | The player shows "This title isn't in your plan"; Subscribe Now posts subscribe. |
| Title only available in TrueVisions NOW | The player shows "Stream seamlessly on TrueVisions NOW"; the button posts open-app. |
{ "channel": "truevision-app", "type": "sign-in", "id": "<content id>", "returnUrl": "<player page url>" }Protected content
Protected titles use Widevine (Android, Chrome), FairPlay (iOS, Safari) or PlayReady (Edge). The licence request is made by the player inside the WebView, so the WebView must be allowed to use the platform's content decryption module. Follow DRM in WebViews before testing paid content.
Errors
| What the viewer sees | What the host receives |
|---|---|
| "This video can't be played right now" with Try again | playback-error with the Bitmovin error code and name (for example 1400 SOURCE_ERROR, 2000-series for DRM). Log it and, for repeated DRM errors, check the DRM page. |
| "No stream is available for this title yet" | Nothing. The playback API has no source for the id. |
| "Player licence is not configured" | Nothing. Deployment issue on TrueVisions' side. |