Giter VIP home page Giter VIP logo

embed's Introduction

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="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:

  • source - Required, This is the URL or the magnet link of the torrent file, or any other static file on your server you wish to stream/download using Torrents Time.

  • publisher_id - Optional, This is your unique Publisher ID, if you haven't registered yet as a Torrents Time publisher, check out the reasons why you should register.

  • title - Optional, Set the video/downloaded file title. If not specified, the title will get auto detected from file name or torrent info.

  • autoPlay - Optional, Default: false. providing true as the value will auto stream or download the file.

  • imdbid Optional, IMDB ID, If specified, Torrents Time will automatically search for poster images and subtitles across the web.

  • poster Optional, The poster parameter sets the image(s) that displays before the video begins playing. As soon as the user clicks play the poster will go away.

####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="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.

embed's People

Contributors

doublerainbow 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.