Skip to content

Instantly share code, notes, and snippets.

@ranyefet
Created May 4, 2015 10:46
Show Gist options
  • Save ranyefet/d1fff2e6b662615d1566 to your computer and use it in GitHub Desktop.
Save ranyefet/d1fff2e6b662615d1566 to your computer and use it in GitHub Desktop.
myPlugin example test page
<!doctype>
<html>
<head>
<title>My Plugin Test page</title>
<script type="text/javascript" src="../../mwEmbedPath.php/mwEmbedLoader.php"></script>
</head>
<body>
<h2>My Plugin example</h2>
<div class="container">
<div id="kPlayer" style="width: 400px; height: 330px;"></div>
</div>
<script>
mw.setConfig('forceMobileHTML5', true);
kWidget.embed({
'targetId': 'kPlayer',
'wid': '_000000', // Replace it with your partner_id
'uiconf_id' : 00000, // Replace it with your uiConf
'flashvars': {
'myPlugin': {
"plugin" : true,
"pauseTimeout": 5
}
}
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment