Peer-to-Peer Video Streaming in HTML5 with WebTorrent

  • István KorenEmail author
  • Ralf Klamma
Conference paper
Part of the Lecture Notes in Computer Science book series (LNCS, volume 10845)


Multimedia-related businesses dealing with movie streaming and video-based short messages have increased the global Internet video traffic substantially in the last couple of years. At the same time, multimedia on the Web has been standardized in terms of codecs and browser-based JavaScript APIs. However, the technological challenges concerning the distribution of large video files are today mainly tackled by scaling up capacities in cloud data centers, or relying on content delivery networks. Both approaches favor financially strong, large companies, while independent video providers with highly demanded videos are disadvantaged. In this article, we conceptualize methods to offload video delivery from centralized clouds to clients. In particular, we implemented and evaluated a system that streams videos peer-to-peer via WebTorrent in HTML5. The resulting library is available open source.


Web multimedia Peer-to-peer WebTorrent 



We would like to thank our student Philipp Bartels for his contributions towards the implementation of the prototype and we are grateful for the feedback received in our evaluation and the review. The work has received funding from the European Commission’s FP7 IP Learning Layers under grant agreement no. 318209 and from the European Research Council under the European Union’s Horizon 2020 Programme through the project “WEKIT” (grant no. 687669).


  1. 1.
    Buyya, R., Pathan, M., Vakali, A.: Content Delivery Networks. Lecture Notes in Electrical Engineering, vol. 9. Springer, Heidelberg (2008). Scholar
  2. 2.
    Cisco: Cisco Visual Networking Index: Global Mobile Data Traffic Forecast Update 2014–2019 White Paper (2015)Google Scholar
  3. 3.
    Hickson, I., Bergkvist, A., Burnett, D.C., Jennings, C., Narayanan, A., Aboba, B.: WebRTC 1.0: Real-time Communication Between Browsers: W3C Working Draft, 28 January 2016.
  4. 4.
    Li, B., Xie, S., Qu, Y., Keung, G.Y., Lin, C., Liu, J., Zhang, X.: Inside the new coolstreaming: principles, measurements and performance implications. In: IEEE Conference on Computer Communications, pp. 1031–1039 (2008)Google Scholar
  5. 5.
    Meyn, A.J.: Browser to Browser Media Streaming with HTML5: Master’s Thesis. Aalto University (2012)Google Scholar
  6. 6.
    Nogueira Barbosa, F.R., Gomes Soares, L.F.: Towards the application of WebRTC peer-to-peer to scale live video streaming over the internet. In: Simposio Brasileiro de Redes de Computadores (SBRC) (2014).
  7. 7.
    Nurminen, J.K., Meyn, A.J.R., Jalonen, E., Raivio, Y., Garcıa Marrero, R.: P2P media streaming with HTML5 and WebRTC. In: IEEE Conference on Computer Communications Workshops (Infocom Workshops), pp. 63–64 (2013)Google Scholar
  8. 8.
    Papagiannaki, K., Gummadi, K., Partridge, C., Zhao, M., Aditya, P., Chen, A., Lin, Y., Haeberlen, A., Druschel, P., Maggs, B., Wishon, B., Ponec, M.: Peer-assisted content distribution in Akamai netsession. In: IMC 2013 Proceedings of the 2013 Conference on Internet Measurement, pp. 31–42 (2013)Google Scholar
  9. 9.
    Rescorla, E.: Introduction to Distributed Hash Tables (2006).
  10. 10.
    Roverso, R., Hogqvist, M.: Hive.js: browser-based distributed caching for adaptive video streaming. In: IEEE International Symposium on Multimedia, pp. 143–146 (2014)Google Scholar
  11. 11.
    Satyanarayanan, M., Simoens, P., Xiao, Y., Pillai, P., Chen, Z., Ha, K., Hu, W., Amos, B.: Edge analytics in the internet of things. IEEE Pervasive Comput. 14(2), 24–31 (2015)CrossRefGoogle Scholar
  12. 12.
    Stoica, I., Morris, R., Liben-Nowell, D., Karger, D.R., Kaashoek, M.F., Dabek, F., Balakrishnan, H.: Chord: a scalable peer-to-peer lookup protocol for internet applications. IEEE/ACM Trans. Netw. 11(1), 17–32 (2003)CrossRefGoogle Scholar
  13. 13.
    Sugawara, M., Choi, S.Y., Wood, D.: Ultra-high-definition television (Rec. ITU-R BT.2020): a generational leap in the evolution of television [Standards in a Nutshell]. IEEE Signal Process. Mag. 31(3), 170–174 (2014)CrossRefGoogle Scholar
  14. 14.
    Wolenetz, M., Smith, J., Watson, M., Colwell, A., Bateman, A.: Media Source Extensions: W3C Candidate Recommendation 12 November 2015.

Copyright information

© Springer International Publishing AG, part of Springer Nature 2018

Authors and Affiliations

  1. 1.Advanced Community Information Systems (ACIS) GroupRWTH Aachen UniversityAachenGermany

Personalised recommendations