presentation slide switch-front end
This commit is contained in:
parent
7110866925
commit
8f0cc326f5
@ -130,6 +130,9 @@ Handlebars.registerHelper "isCurrentUserSharingVideo", ->
|
||||
Handlebars.registerHelper "isCurrentUserTalking", ->
|
||||
BBB.amITalking()
|
||||
|
||||
Handlebars.registerHelper "isCurrentUserPresenter", ->
|
||||
BBB.isUserPresenter(getInSession('userId'))
|
||||
|
||||
Handlebars.registerHelper "isDisconnected", ->
|
||||
return !Meteor.status().connected
|
||||
|
||||
|
@ -87,6 +87,9 @@ https://github.com/bigbluebutton/bigbluebutton/blob/master/bigbluebutton-client/
|
||||
BBB.isUserTalking = (userId, callback) ->
|
||||
BBB.getUser(userId)?.user?.voiceUser?.talking
|
||||
|
||||
BBB.isUserPresenter = (userId, callback) ->
|
||||
BBB.getUser(userId)?.user?.presenter
|
||||
|
||||
# returns true if the current user is marked as locked
|
||||
BBB.amILocked = () ->
|
||||
return BBB.getCurrentUser()?.user.locked
|
||||
@ -334,6 +337,20 @@ https://github.com/bigbluebutton/bigbluebutton/blob/master/bigbluebutton-client/
|
||||
###
|
||||
BBB.deletePresentation = (presentationID) ->
|
||||
|
||||
# Request to switch the presentation to the previous slide
|
||||
BBB.goToPreviousPage = () ->
|
||||
Meteor.call('publishSwitchToPreviousSlideMessage',
|
||||
getInSession('meetingId'),
|
||||
getInSession('userId'),
|
||||
getInSession('authToken'))
|
||||
|
||||
# Request to switch the presentation to the next slide
|
||||
BBB.goToNextPage = () ->
|
||||
Meteor.call('publishSwitchToNextSlideMessage',
|
||||
getInSession('meetingId'),
|
||||
getInSession('userId'),
|
||||
getInSession('authToken'))
|
||||
|
||||
BBB.webRTCConferenceCallStarted = ->
|
||||
|
||||
BBB.webRTCConferenceCallConnecting = ->
|
||||
|
@ -122,6 +122,13 @@
|
||||
}
|
||||
}
|
||||
|
||||
.presentationNavigationControls {
|
||||
width:54px;
|
||||
font-size:28px;
|
||||
float:right;
|
||||
margin-right:30px;
|
||||
}
|
||||
|
||||
.vertically-centered {
|
||||
position: relative;
|
||||
top: 50%;
|
||||
|
@ -11,6 +11,12 @@
|
||||
callback()
|
||||
|
||||
Template.whiteboard.events
|
||||
"click .previousSlide":(event) ->
|
||||
BBB.goToPreviousPage()
|
||||
|
||||
"click .nextSlide":(event) ->
|
||||
BBB.goToNextPage()
|
||||
|
||||
"click .fullscreenWhiteboardButton": (event, template) ->
|
||||
elem = document.getElementById("whiteboard")
|
||||
if elem.requestFullscreen
|
||||
|
@ -6,6 +6,12 @@
|
||||
{{/if}}
|
||||
<span class="ion-easel heading"></span>
|
||||
{{title}}
|
||||
{{#if isCurrentUserPresenter}}
|
||||
<span class="presentationNavigationControls">
|
||||
<button class="previousSlide ion-arrow-left-a"></button>
|
||||
<button class="nextSlide ion-arrow-right-a"></button>
|
||||
</span>
|
||||
{{/if}}
|
||||
</h3>
|
||||
{{#each getCurrentSlide}}
|
||||
{{> slide}}
|
||||
|
Loading…
Reference in New Issue
Block a user