Changes

Jump to: navigation, search

Embedded Player/en

2 bytes added, 14:15, 24 December 2012
Button to start the player
http://torrentstream.org/test-popup.html
== Links required to embed the player to into site's page ==
To embed the player to into site's page, insert scripts and styles before the closing tag <tt></body></tt>.
<tt><nowiki> <script type="text/javascript" src="http://static.torrentstream.org/jsapi/js/lib/ts/core.js"></script>
== Button to start the player ==
After pasting all scripts and styles create a button or link that will launch the player. Previously declared function <tt>'''showPlayer()'''</tt> must be called when pressing by clicking this button. This function takes one parameter: content identifier (content id). Example:
<tt><input type="button" value="open" onclick="showPlayer('fa8ddccad4aea0a41d000a4f243c11dee99c4087');" /> </tt>

Navigation menu