Skip to content

Commit

Permalink
up main files
Browse files Browse the repository at this point in the history
  • Loading branch information
fgl27 committed Aug 3, 2022
1 parent a39a483 commit 7ace057
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
2 changes: 1 addition & 1 deletion release/githubio/js/main.js

Large diffs are not rendered by default.

30 changes: 28 additions & 2 deletions release/githubio/js/main_uncompressed.js
Original file line number Diff line number Diff line change
Expand Up @@ -23773,6 +23773,7 @@
function PlayVod_SetStart() {
PlayVod_muted_segments_value = null;
PlayVod_previews_clear();
PlayVod_get_preview_Url();

PlayVod_updateStreamLogo();
PlayVod_updateChapters();
Expand Down Expand Up @@ -23914,8 +23915,6 @@

Play_CheckFollow(Main_values.Main_selectedChannel_id);

//TODO update this
PlayVod_previews_pre_start(null);
PlayVod_muted_segments_value = response.muted_segments;
PlayVod_muted_segments(PlayVod_muted_segments_value);

Expand Down Expand Up @@ -24972,6 +24971,33 @@
PlayVod_setHidePanel();
}

var previewUrl = '{"query":"{video(id:%x){seekPreviewsURL}}"}';

function PlayVod_get_preview_Url() {
FullxmlHttpGet(
PlayClip_BaseUrl,
Play_base_backup_headers_Array,
PlayVod_get_preview_UrlResult,
noop_fun,
0,
PlayClip_loadVodOffsetStartVodId,
'POST', //Method, null for get
previewUrl.replace('%x', Main_values.ChannelVod_vodId)
);
}

function PlayVod_get_preview_UrlResult(responseObj) {
if (PlayVod_isOn) {
if (responseObj.status === 200) {
var obj = JSON.parse(responseObj.responseText);

if (obj.data && obj.data.video && obj.data.video.seekPreviewsURL) {
PlayVod_previews_pre_start(obj.data.video.seekPreviewsURL);
}
}
}
}

var PlayVod_previews_url;
var PlayVod_previewsId;

Expand Down

0 comments on commit 7ace057

Please sign in to comment.