updated translations

This commit is contained in:
Luke Pulverenti 2015-04-06 16:43:40 -04:00
parent 59eea6f602
commit 78c8d7d596
2 changed files with 6 additions and 7 deletions

View File

@ -82,7 +82,7 @@
// v4 Id F4EB2E8E
// default receiver chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID
var applicationID = "69C59853";
var applicationID = "F4EB2E8E";
// request session
var sessionRequest = new chrome.cast.SessionRequest(applicationID);

View File

@ -725,7 +725,7 @@
});
}
self.createStreamInfo = function (type, item, mediaSource, startPosition) {
self.createStreamInfo = function (item, mediaSource, startPosition) {
var mediaUrl;
var contentType;
@ -734,6 +734,8 @@
var startPositionInSeekParam = startPosition ? (startPosition / 10000000) : 0;
var seekParam = startPositionInSeekParam ? '#t=' + startPositionInSeekParam : '';
var type = item.MediaType.toLowerCase();
if (type == 'video') {
contentType = 'video/' + mediaSource.Container;
@ -827,14 +829,13 @@
return;
}
var mediaSource;
var deviceProfile = self.getDeviceProfile();
getPlaybackInfo(item.Id, deviceProfile, startPosition).done(function (result) {
if (validatePlaybackInfoResult(result)) {
mediaSource = getOptimalMediaSource(item.MediaType, result.MediaSources);
var mediaSource = getOptimalMediaSource(item.MediaType, result.MediaSources);
if (mediaSource) {
@ -1522,8 +1523,6 @@
var playerElement = this;
var playSessionId = getParameterByName('PlaySessionId', playerElement.currentSrc);
$(playerElement).off('.mediaplayerevent').off('ended.playbackstopped');
self.cleanup(playerElement);
@ -1618,7 +1617,7 @@
html += '<div class="mediaPlayerAudioContainer" style="display:none;"><div class="mediaPlayerAudioContainerInner">';;
}
html += '<audio class="mediaPlayerAudio" controls>';
html += '<audio class="mediaPlayerAudio" crossorigin="anonymous" controls>';
html += '</audio></div></div>';
$(document.body).append(html);