fix(shared-video): hardcode shared video name

The YouTube api removed player#getVideoData years ago.
I am completely baffled as to how the feature kept working.
The title of the video is no longer obtainable through
the player itself, so instead call the bot participant
"YouTube."
This commit is contained in:
Leonard Kim 2017-11-13 15:51:36 -08:00 committed by Дамян Минков
parent bff983d969
commit aec22b8ed9
1 changed files with 2 additions and 2 deletions

View File

@ -270,7 +270,7 @@ export default class SharedVideoManager {
const thumb = new SharedVideoThumb(
self.url, SHARED_VIDEO_CONTAINER_TYPE, VideoLayout);
thumb.setDisplayName(player.getVideoData().title);
thumb.setDisplayName('YouTube');
VideoLayout.addRemoteVideoContainer(self.url, thumb);
const iframe = player.getIframe();
@ -293,7 +293,7 @@ export default class SharedVideoManager {
APP.store.dispatch(participantJoined({
id: self.url,
isBot: true,
name: player.getVideoData().title
name: 'YouTube'
}));
VideoLayout.handleVideoThumbClicked(self.url);