API Documentation

Embed Playticon Anywhere

Use our free API to embed the Playticon player on your website. Simple, powerful, and completely free.

Quick Start

Add the Playticon player to your website in just a few lines of code:

<!-- Basic Embed -->
<iframe 
    src="https://gorok.space/player?link=YOUR_MEDIA_URL"
    width="100%" 
    height="450"
    frameborder="0"
    allowfullscreen
    allow="autoplay; encrypted-media; picture-in-picture"
></iframe>

Replace YOUR_MEDIA_URL with your media URL (HLS, DASH, MP4, etc.)

Embed Options

Parameter Type Description
link string Required. URL-encoded media URL to play.
license string Optional. DRM license server URL for protected content.
autoplay boolean Optional. Auto-start playback (subject to browser policies).
muted boolean Optional. Start muted (helps with autoplay restrictions).

Examples

HLS Stream

<iframe 
    src="https://gorok.space/player?link=https%3A%2F%2Ftest-streams.mux.dev%2Fx36xhzz%2Fx36xhzz.m3u8"
    width="100%" 
    height="450"
    frameborder="0"
    allowfullscreen
></iframe>

DASH Stream

<iframe 
    src="https://gorok.space/player?link=https%3A%2F%2Fdash.akamaized.net%2Fakamai%2Fbbb_30fps%2Fbbb_30fps.mpd"
    width="100%" 
    height="450"
    frameborder="0"
    allowfullscreen
></iframe>

DRM Protected Content

<iframe 
    src="https://gorok.space/player?link=YOUR_DRM_STREAM_URL&license=YOUR_LICENSE_SERVER_URL"
    width="100%" 
    height="450"
    frameborder="0"
    allowfullscreen
></iframe>

Dynamic Embed with JavaScript

<div id="player-container"></div>

<script>
    function embedPlayticon(mediaUrl, containerId) {
        const container = document.getElementById(containerId);
        const iframe = document.createElement('iframe');
        iframe.src = 'https://gorok.space/player?link=' + encodeURIComponent(mediaUrl);
        iframe.width = '100%';
        iframe.height = '450';
        iframe.frameBorder = '0';
        iframe.allowFullscreen = true;
        iframe.allow = 'autoplay; encrypted-media; picture-in-picture';
        container.appendChild(iframe);
    }
    
    // Usage
    embedPlayticon('https://example.com/video.m3u8', 'player-container');
</script>

Responsive Embed

For a responsive player that maintains aspect ratio:

<style>
    .player-wrapper {
        position: relative;
        padding-bottom: 56.25%; /* 16:9 aspect ratio */
        height: 0;
        overflow: hidden;
    }
    .player-wrapper iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
</style>

<div class="player-wrapper">
    <iframe 
        src="https://gorok.space/player?link=YOUR_MEDIA_URL"
        frameborder="0"
        allowfullscreen
    ></iframe>
</div>

Supported Formats

HLS .m3u8 manifests
DASH .mpd manifests
MP4 H.264/H.265 video
WebM VP8/VP9 video
MP3 Audio files
DRM Widevine/PlayReady

Usage Notes

  • The API is completely free for personal and educational use.
  • No registration or API keys required for basic embed usage.
  • Media files must be accessible from public URLs with proper CORS headers.
  • For commercial use or high-volume applications, please contact us.