presentation slide switch-front end

This commit is contained in:
Anton Georgiev 2015-05-06 19:45:51 +00:00
parent 7110866925
commit 8f0cc326f5
5 changed files with 39 additions and 0 deletions

View File

@ -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

View File

@ -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 = ->

View File

@ -122,6 +122,13 @@
}
}
.presentationNavigationControls {
width:54px;
font-size:28px;
float:right;
margin-right:30px;
}
.vertically-centered {
position: relative;
top: 50%;

View File

@ -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

View File

@ -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}}