* Added subtitle support to JS player.
* Move `video-item` id to source tag.
* Move `video-item` id to source tag.
* Fix cast support to handle new video tag format
* Add subtitle support to cast integration, WIP
* Replace `&` with `&` in video titles.
* Check if the video is already marked as watched
* Switch to HTML watched check.
mediaInfo=newchrome.cast.media.MediaInfo(contentId,contentType);// Create MediaInfo var that contains url and content type
// mediaInfo.streamType = chrome.cast.media.StreamType.BUFFERED; // Set type of stream, BUFFERED, LIVE, OTHER
mediaInfo.metadata=newchrome.cast.media.GenericMediaMetadata();// Create metadata var and add it to MediaInfo
mediaInfo.metadata.title=contentTitle;// Set the video title
mediaInfo.metadata.title=contentTitle.replace("&","&"); // Set the video title
mediaInfo.metadata.images=[newchrome.cast.Image(contentImage)];// Set the video thumbnail
// mediaInfo.textTrackStyle = new chrome.cast.media.TextTrackStyle();
mediaInfo.tracks=contentSubtitles;
varrequest=newchrome.cast.media.LoadRequest(mediaInfo);// Create request with the previously set MediaInfo.
// request.queueData = new chrome.cast.media.QueueData(); // See https://developers.google.com/cast/docs/reference/web_sender/chrome.cast.media.QueueData for playlist support.
request.currentTime=shiftCurrentTime(contentCurrentTime);// Set video start position based on the browser video position
request.activeTrackIds=contentActiveSubtitle;// Set active subtitle based on video player
// request.autoplay = false; // Set content to auto play, true by default