Skip to content

prikshitgupta/stbroker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stbroker

Communicate with an STB portal, as if it had a real API.

NPM version Flattr this git repo

Install

Install it for use in your own application:

npm install stbroker

What is this?

Many IPTV providers require their users to buy an expensive set-top-box in order to watch their streams. You can use this little library to work around that, and directly get the url of the channel's stream.

How to use it

var iptv = new Stbroker({
	// The mac address you gave your iptv provider, can be made up
	mac_address: '00:1A:79:47:9A:3F',

	// The url to the portal (sometimes this is all you need)
	start_url: 'http://www.your-iptv-provider-url.net/welcome',

	// The following is not strictly needed
	// The root of the portal (sometimes this is a subfolder, so it can be /somethingelse/)
	base: 'http://www.your-iptv-provider-url.net',

	// The path where actions are requested (like handshakes, channel lists, ...)
	action_path: '/action.php'
});

// Get all the available channels
iptv.getChannels(function gotChannels(err, channels) {
	console.log('Channels:', channels);

	channels[0].getStreamUrl(function gotUrl(err, url) {
		console.log('Here\'s your stream url:', url);
	});
});

About

Communicate with an STB portal

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%