uupaa.clicktoplay.js

0.0.5 • Public • Published

ClickToPlay.js Build Status

npm

Management of the Click-To-Play resources.

This module made of WebModule.

Documentation

Browser, NW.js and Electron

<script src="<module-dir>/lib/WebModule.js"></script>
<script src="<module-dir>/lib/ClickToPlay.js"></script>
<input type="button" value="click to play" onclick="play()" />
<script>
 
function play() {
    var clickToPlay = new ClickToPlay({ video: 1, audio: 1, sound: 1 },
                                      function(video,   // @arg HTMLVideoElementArray
                                               audio,   // @arg HTMLAudioElementArray
                                               sound) { // @arg WebAudioContextArray
/*
        playVideo( video );
        playAudio( audio );
        playSound( sound );
 */
 
    }, window.event);
}
</script>

Package Sidebar

Install

npm i uupaa.clicktoplay.js

Weekly Downloads

0

Version

0.0.5

License

MIT

Last publish

Collaborators

  • uupaa