Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@kv8n2oryk/tizeniptv

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kv8n2oryk/tizeniptv

tizeniptv is an app bring https://iptvwebv2.vercel.app/ on your Tizen (Samsung) TVs.

latest
Source
npmnpm
Version
1.2.3
Version published
Maintainers
1
Created
Source

TizenIPTV

An npm module that provides access to IPTV channels from https://iptvwebv2.vercel.app/ for Tizen (Samsung) TVs.

Installation

npm install @kv8n2oryk/tizeniptv

Usage

const TizenIPTV = require('@kv8n2oryk/tizeniptv');

async function main() {
  // Create IPTV instance
  const iptv = new TizenIPTV({
    baseURL: 'https://iptvwebv2.vercel.app', // optional, default
    port: 8085 // optional, default
  });

  try {
    // Initialize the service
    await iptv.init();
    console.log('IPTV service started on port', iptv.port);

    // Get available channels
    const channels = await iptv.getChannels();
    console.log('Available channels:', channels);

    // Play a channel
    if (channels.length > 0) {
      const channelUrl = iptv.getLocalPlaybackUrl(channels[0].url);
      console.log('Playback URL:', channelUrl);
      // Open channelUrl in browser or media player
    }

  } catch (error) {
    console.error('Error:', error.message);
  } finally {
    // Stop the service
    iptv.stop();
  }
}

main();

API

new TizenIPTV(options)

Creates a new TizenIPTV instance.

Options:

  • baseURL (string): Base URL of the IPTV website (default: 'https://iptvwebv2.vercel.app')
  • port (number): Port for the local server (default: 8085)

async init()

Initializes the IPTV service and starts the local server.

async getChannels()

Fetches available IPTV channels from the website.

Returns: Array of channel objects with name and url properties.

getLocalPlaybackUrl(channelUrl)

Generates a local playback URL for a channel.

Parameters:

  • channelUrl (string): The HLS URL of the channel

Returns: Local URL that can be used to play the channel

playChannel(channelUrl)

Generates a direct playback URL for a channel on the remote website.

Parameters:

  • channelUrl (string): The HLS URL of the channel

Returns: Remote URL for direct playback

stop()

Stops the local server.

Endpoints

When the service is running, the following endpoints are available:

  • GET /play?url=<channel_url> - HLS video player for the specified channel
  • GET /channels - JSON API returning available channels

Development

# Install dependencies
npm install

# Build the module
npm run build

# Run tests
node test.js

License

GPL-3.0-only

Repository

https://github.com/thichcode/tizeniptv

FAQs

Package last updated on 12 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts