torrentsTime / embed

Embed Torrents Time in your site or project with a tiny piece of code
MIT License
335 stars 70 forks source link

Embedding Torrents Time

Torrents Time is a one of a kind fully customizable bittorrent client, advanced video player and downloads manager which is installed directly on the browser. Embeding Torrents Time in your website enables you to offer a unique, amazing and one of a kind experience to your websites' visitors.

Torrents Time was designed to fully support and enhance the needs of users on video streaming, downloads and torrents websites, while taking into consideration the needs and wants of those site owners to maximize the value they can gain from embedding Torrents Time on their site.

Quick start

Embedding Torrents Time is as simple as adding an iframe to your website

<iframe src="https://embed.torrents-time.com/#source=TorrentURL&publisher_id=1"></iframe>

Or just even by linking to it directly using an <a tag

<a href="https://embed.torrents-time.com/#source=TorrentURL&publisher_id=1">WATCH</a>

Javascript API

For those who don't want to include any 3rd party elements on their site or just seek for some more advanced embedding options, we have created this super simple Javascript API which takes about 5 seconds to implement in your site:

<script src="https://github.com/torrentsTime/embed/raw/master/torrentstime.min.js"></script>
<script>
torrentsTime.init({publisher_id:1});
</script>
<div class="torrentsTime" data-setup='{"source": "torrentURL"}'></div>

Settings

You can enhance Torrents Time by simply providing one or more of these optional parameters:

Example

For setting the parameters in the iframe/link URL:

https://embed.torrents-time.com/#source=TorrentURL&title=VideoName&imdb=tt1254207&autoPlay=1&publisher_id=1

For using with the implemented Javascript:

<script src="https://github.com/torrentsTime/embed/raw/master/torrentstime.min.js"></script>
<script>
torrentsTime.init({publisher_id:1});
</script>
<div class="torrentsTime" data-setup='{"source": "torrentURL", "title": "VideoName", "imdbid": "tt1254207", "id": "myPlayer"}'></div>

You can set the parameters within the torrentsTime.init function or within the data-setup attribute of the containment <div element.
The difference is that the parameters within the torrentsTime.init function will apply globably for all the Torrents Time instances embeded in the page and the parameters within the data-setup attribute will apply only for that specific instance.


Documentation

For more detailed info, please check out our short Getting Started Guide to learn everything you need to know about our Javascript API.
And if you're ready to dive in and discover more advanced options, the documentation is the first place to go for more information.