-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is a work in progress. A presenter bot can now start and stop it's screenshare. The media sent to the server is the same fake media used for the video. TODO: - check if it's a presenter
- Loading branch information
1 parent
48c39d5
commit d73fd70
Showing
5 changed files
with
62 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module.exports = { | ||
start: 'app.actionsBar.actionsDropdown.desktopShareLabel', | ||
stop: 'app.actionsBar.actionsDropdown.stopDesktopShareLabel', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
/** | ||
* @name Index | ||
* | ||
* @desc BigBlueBot API | ||
*/ | ||
require('dotenv').config(); | ||
|
||
require('dotenv').config() | ||
const action = require('./lib/action'); | ||
|
||
const audio = require('./lib/action/audio.js') | ||
const chat = require('./lib/action/chat.js') | ||
const note = require('./lib/action/note.js') | ||
const presentation = require('./lib/action/presentation.js') | ||
const user = require('./lib/action/user.js') | ||
const video = require('./lib/action/video.js') | ||
const whiteboard = require('./lib/action/whiteboard.js') | ||
const { | ||
audio, | ||
chat, | ||
note, | ||
presentation, | ||
screenshare, | ||
user, | ||
video, | ||
whiteboard, | ||
} = action; | ||
|
||
const logger = require('./lib/logger.js') | ||
const run = require('./lib/run.js') | ||
const logger = require('./lib/logger'); | ||
const run = require('./lib/run'); | ||
|
||
module.exports = { | ||
audio: audio, | ||
chat: chat, | ||
note: note, | ||
presentation: presentation, | ||
user: user, | ||
video: video, | ||
whiteboard: whiteboard, | ||
logger: logger, | ||
run: run | ||
} | ||
audio, | ||
chat, | ||
note, | ||
presentation, | ||
screenshare, | ||
user, | ||
video, | ||
whiteboard, | ||
logger, | ||
run, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
const conf = require('../conf'); | ||
const util = require('../util'); | ||
const perform = require('./perform'); | ||
const audio = require('./audio'); | ||
|
||
const { screenshare: label } = conf.label; | ||
|
||
const action = { | ||
get start() { | ||
return { | ||
description: 'screenshare start', | ||
before: audio.modal.close, | ||
execute: async page => await util.click(page, label.start, true), | ||
test: async page => true, // TODO | ||
}; | ||
}, | ||
get stop() { | ||
return { | ||
description: 'screenshare stop', | ||
execute: async page => await util.click(page, label.stop, true), | ||
test: async page => true, // TODO | ||
}; | ||
}, | ||
}; | ||
|
||
module.exports = { | ||
start: async page => await perform(page, action.start), | ||
stop: async page => await perform(page, action.stop), | ||
}; |