https://github.com/salvatorecordiano/reveal-js-pubnub-remote-control-plugin
reveal.js PubNub Remote Control Plugin
https://github.com/salvatorecordiano/reveal-js-pubnub-remote-control-plugin
bot pubnub remote-control reveal-js reveal-plugin revealjs telegram telegram-bot
Last synced: 6 months ago
JSON representation
reveal.js PubNub Remote Control Plugin
- Host: GitHub
- URL: https://github.com/salvatorecordiano/reveal-js-pubnub-remote-control-plugin
- Owner: salvatorecordiano
- License: mit
- Created: 2016-10-06T21:51:49.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-10-27T21:40:23.000Z (almost 8 years ago)
- Last Synced: 2025-04-23T08:59:15.202Z (6 months ago)
- Topics: bot, pubnub, remote-control, reveal-js, reveal-plugin, revealjs, telegram, telegram-bot
- Language: JavaScript
- Homepage: https://www.pubnub.com/blog/2016-12-09-realtime-presentation-remote-control-using-reveal.js-and-pubnub/
- Size: 18.6 KB
- Stars: 10
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# reveal.js PubNub Remote Control Plugin
A plugin for [Reveal.js](https://github.com/hakimel/reveal.js) allowing to easily use [PubNub](https://www.pubnub.com/) API to advance through your slides. It remotely allows advancing the slideshow to the next slide or fragment.
## Installation
Copy the files ```pubnub-remote-control.js``` into the plugin folder of your reveal.js presentation, i.e. ```plugin/pubnub-remote-control```.
Add the plugins to the dependencies in your presentation, as below.
```javascript
Reveal.initialize({
// ...
dependencies: [
// ...
{ src: 'https://cdn.pubnub.com/sdk/javascript/pubnub.4.4.0.min.js', async: true },
{ src: 'plugin/pubnub-remote-control/pubnub-remote-control.js', async: true },
// ...
]
});
```## Configuration
The ```pubnub-remote-control.js``` plugin has several parameters that you can set for your presentation by providing an ```pubnubRemoteControl``` option in the reveal.js initialization options.
Not all configuration parameters are optional.```javascript
Reveal.initialize({
// ...
pubnubRemoteControl: {
subscribeKey: 'PUBNUB SUBSCRIBE KEY', // PubNub subscribe key
publishKey: 'PUBNUB PUBLISH KEY', // PubNub publish key
inputChannel: 'input', // the channel used to receive remote commands
outputChannel: 'output', // the channel used to update presentation status
},
// ...
});
```