-
Notifications
You must be signed in to change notification settings - Fork 94
problem using stats plugin - nerd box #33
Comments
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. |
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 After test, please let me know if it solves your issue. |
Hi Flávio. I changed that but did no fix. I tried that plus changing the javascript to
<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:
Daniel Roviriego |
hi @deedos, So the problem is on the index.html delivered or the tutorial? |
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:
Daniel Roviriego |
fixing this with full html session |
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
The text was updated successfully, but these errors were encountered: