Giter Club home page Giter Club logo

kd-streaming-proxy's Introduction

KabelDeutschland simple streaming proxy

As all of you KabelDeutschland customers know, there is an existing iOS App that provides full TV-channel streaming if your are a paying customer of both cable internet and tv. Unfortunatly there is no released Android nor Desktop version of this streaming possibility. KabelDeutschland kept us in the dark, if and when there will be such an option.

That's why i built this script to be able to watch all of the channels on my desktop and also with XBMC/KODI.

Beside this script, there is now an even simpler version. You can download the binary from my page freshest.me/kd. This version was build with golang and handles all functions in a simple executable. Mainly the new version was designed for every-day user who do not want to setup their own web-server but simply start the proxy.

The version of the proxy, written in GO, is now also available as open-source on github/edi-design/kd-go.

Requirements

Contract

  • KabelDeutschland Cable TV Package (the smallest one for 2,95โ‚ฌ is enough)
  • KabelDeutschland Internet via cable

The first package is needed because the KD backend ensure with your credentials that you are a paying customer. The cable internet contract is needed cause the final stream link is available only in their network. So you can't connect and watch from any other ip-address outside of the KD network.

Software

  • webserver with php installed
    • php5_curl (`apt-get install php5-curl)

Installation

Just copy the content of this repository to your webserver and configure it with your credentials.

Configuration

  • add your credentials instead of the placeholders. These credentials are the same you use to login into the kd customer-service-center.

Run

Point your browser to your webserver for example http://localhost:8000/kd.php. That call provides you with the download of a playlist file. This m3u-file can opened with vlc and contains the redirect links.

You can also add the url http://localhost:8000/kd.php directly to VLC. This will resolve the playlist automatically.

Once imported into your VLC player, the scripts handle the generation of a licensed stream link and forwards the player automatically to this link.

There is a param named quality which can be low medium and high. This determines the stream bandwidth. Try http://localhost:8000/kd.php?quality=high for the highest quality. Medium is the default if no param was given.

This new version now works with Kodi / XBMC (PVR IPTV Plugin) and also the tv-stream-recorder for Synology based NAS-systems.

The first call of the script will take about a minute to generate the playlist. So please be patient. The next time it will be cached for 24 hours. To use the cache, you web-server needs to have write acces to the folder cache.

If you use the script on a Synology NAS the write access will be controlled with the Control-Panel -> Groups. The http group needs read/write access to the web folder.

Debug

There are three steps of debugging included. The simplest one is to call the script with format=txt to get a the textual output of the playlist. http://localhost:8000/kd.php?format=txt

The more detailed version works with log_level=debug and writes al lot of data to logs/*.log. http://localhost:8000/kd.php?format=txt&log_level=debug

TODOs

  • UDID generation

Explanation

To learn about how this script works, see freshest.me.

kd-streaming-proxy's People

Contributors

edi-design avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.