Merge pull request #1161 from jitsi/pinning-local-not-signal-unpin
Sending unpin after clicking local video and unpinning remote.
This commit is contained in:
commit
f32438b219
@ -341,13 +341,19 @@ var VideoLayout = {
|
|||||||
* @param id the identifier of the video thumbnail
|
* @param id the identifier of the video thumbnail
|
||||||
*/
|
*/
|
||||||
handleVideoThumbClicked (id) {
|
handleVideoThumbClicked (id) {
|
||||||
|
var smallVideo = VideoLayout.getSmallVideo(id);
|
||||||
if(pinnedId) {
|
if(pinnedId) {
|
||||||
var oldSmallVideo = VideoLayout.getSmallVideo(pinnedId);
|
var oldSmallVideo = VideoLayout.getSmallVideo(pinnedId);
|
||||||
if (oldSmallVideo && !interfaceConfig.filmStripOnly)
|
if (oldSmallVideo && !interfaceConfig.filmStripOnly) {
|
||||||
oldSmallVideo.focus(false);
|
oldSmallVideo.focus(false);
|
||||||
|
// as no pinned event will be sent for local video
|
||||||
|
// and we will unpin old one, lets signal it
|
||||||
|
// otherwise we will just send the new pinned one
|
||||||
|
if (smallVideo.isLocal)
|
||||||
|
eventEmitter.emit(
|
||||||
|
UIEvents.PINNED_ENDPOINT, oldSmallVideo, false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var smallVideo = VideoLayout.getSmallVideo(id);
|
|
||||||
|
|
||||||
// Unpin if currently pinned.
|
// Unpin if currently pinned.
|
||||||
if (pinnedId === id)
|
if (pinnedId === id)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user