Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

problem using stats plugin - nerd box #33

Closed
deedos opened this issue Aug 26, 2014 · 6 comments
Closed

problem using stats plugin - nerd box #33

deedos opened this issue Aug 26, 2014 · 6 comments

Comments

@deedos
Copy link

deedos commented Aug 26, 2014

getting: Uncaught Error: Cannot find module 'ui_plugin' - localhost:3000/dist/p2phlsstats.js:1
The box is not showing up with shift+ctrl+s.

cheers

@flavioribeiro
Copy link
Contributor

Hi @deedos thanks for reporting this. Maybe you're facing the same problem as @macbroadcast. It seems that clappr isn't exposing ui_plugin, I'll take a deep look on this.

@flavioribeiro
Copy link
Contributor

hi @deedos I could reproduce this problem by importing clappr js below p2phlsstats.js.

You need to put it above, like this:

  <script type="text/javascript" charset="utf-8" src="jquery.js"></script>
  <script type="text/javascript" charset="utf-8" src="underscore.js"></script>
  <script type="text/javascript" charset="utf-8" src="clappr.light.min.js"></script>
  <script type="text/javascript" charset="utf-8" src="p2phls.js"></script>
  <script type="text/javascript" charset="utf-8" src="p2phlsstats.js"></script>

Note that I'm using clappr.light.min.js but you can safely change for clappr.min.js or clappr.js according to your clappr filename.

After test, please let me know if it solves your issue.

@deedos
Copy link
Author

deedos commented Aug 27, 2014

Hi Flávio.

I changed that but did no fix. I tried that plus changing the javascript to
invoke the player (copied from bem.tv webpage) ans then worked..

<script> var playerElement = document.getElementById("player-wrapper"); player = new WP3.Player({ sources: ['http://mygreatcontent.m3u8'], plugins: { playback: [P2PHLS], container: [P2PHLSStats] }, width: 640, height: 360, poster: "http://www.bem.tv/assets/poster.png", watermark: "http://bem.tv/assets/watermark3.png" }); player.attachTo(playerElement); </script>

thanks

2014-08-27 15:51 GMT-03:00 Flávio Ribeiro notifications@github.com:

hi @deedos https://github.com/deedos I could reproduce this bux by
importing clappr js below p2phlsstats.js.

You need to put it above, like this:

<script type="text/javascript" charset="utf-8" src="jquery.js"></script> <script type="text/javascript" charset="utf-8" src="underscore.js"></script> <script type="text/javascript" charset="utf-8" src="clappr.light.min.js"></script> <script type="text/javascript" charset="utf-8" src="p2phls.js"></script> <script type="text/javascript" charset="utf-8" src="p2phlsstats.js"></script>

Note that I'm using clappr.light.min.js but you can safely change for
clappr.min.js or clappr.js according to your clappr filename.

After test, please let me know if it solves your issue.


Reply to this email directly or view it on GitHub
#33 (comment).

Daniel Roviriego
(21) 35920701
(21) 99561654

@flavioribeiro
Copy link
Contributor

hi @deedos,

So the problem is on the index.html delivered or the tutorial?

@deedos
Copy link
Author

deedos commented Aug 27, 2014

most probably the index.html that comes with the source.

cheers

2014-08-27 16:54 GMT-03:00 Flávio Ribeiro notifications@github.com:

hi @deedos https://github.com/deedos,

So the problem is on the index.html delivered or the tutorial?


Reply to this email directly or view it on GitHub
#33 (comment).

Daniel Roviriego
(21) 35920701
(21) 99561654

@flavioribeiro
Copy link
Contributor

fixing this with full html session

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants