(原) 某学习网站的跟踪

原创文章,请后转载,并注明出处。

这是一个学习网站,要求必须把视频看完,浏览器必须有焦点(即必须在前台播放观看)。

<div data-v-203b5c6f="" class="video-container cb">
https://videoadmin.chinahrt.com/videoPlay/play?
    business_id=gp5&
    signId=151%23be50251f5ca649fa9411ae9b7e0e0083%23p2s6_29a9fdb2-8e2c-488e-b4f8-15c04bea7a00&
    courseId=424cd7cfc80b43b88dd4c42c8966666d&
    sectionId=424cd7cfc80b43b88dd4c42c8966666d1-3&
    ifPauseAd=1&
    ifPauseBlur=1&
    ifCourseComplete=0&
    ifDrag=0&
    proxy_url=https://web.chinahrt.com/index.html%23/v_proxy%3FtrainplanId=be50251f5ca649fa9411ae9b7e0e0083%26courseId=424cd7cfc80b43b88dd4c42c8966666d%26sectionId=424cd7cfc80b43b88dd4c42c8966666d1-3&
    receive_course_record_url=https://yun.chinahrt.com/yunapi/course/update_learn_record&
    version=ckplayerx1&
    sub_domain_name=151&
    allow_study_same_time=0

player_common.js
---------------------------------------
function initLog(){
    businessLog(attrset.signId, attrset.courseId, "5", "3", attrset.sectionId, "4", 1,1);
}

function sendLog(){
    var stayTime = new Date().getTime() - startTime;
    businessLog(attrset.signId, attrset.courseId, "5", "3", attrset.sectionId, "4", stayTime,attrset.actualLearnTime);
}

courseyunRecord 学习进度

function courseyunRecord() {
    if (attrset.maxTime <= attrset.lastPlayTime || exiting) {
        return;
    }
    $.ajax({
        url: "/videoPlay/takeRecord",
        data: {
            studyCode: attrset.studyCode,  // 21523667925f40d2a486bd917bab8cb2
            recordUrl: attrset.recordUrl,
            updateRedisMap: attrset.updateRedisMap,  // 1
            recordId: attrset.recordId,   // 1177802025af422bbd7516c4c0dad10e
            sectionId: attrset.sectionId,  // 424cd7cfc80b43b88dd4c42c8966666d1-2 
                                           // 424cd7cfc80b43b88dd4c42c8966666d1-2
            signId: attrset.signId,   // 151#be50251f5ca649fa9411ae9b7e0e0083#p2s6_29a9fdb2-8e2c-488e-b4f8-15c04bea7a00   //用户的唯一标识
            time: attrset.maxTime,  // 视频时长?
            businessId: attrset.businessId
        },
        dataType: "json",
        type: "post",
        success: function (data) {
            if (data.status == '0') {
                attrset.lastPlayTime = attrset.maxTime;
            } else if (data.status == '-1') {
                //停止播放
                alert("不允许同时观看多门课程,请关闭当前页面");
                try {
                    player.quitFullScreen();
                } catch (e) {
                }
                player.videoClear();
                $("#video").remove();
            }
        }
    });
}



https://videoadmin.chinahrt.com/js/log/businesslog.js?v=1233
https://videoadmin.chinahrt.com/js/player/player_common.js?version=5
https://videoadmin.chinahrt.com/videoPlay/play?business_id=gp5&signId=151%23be50251f5ca649fa9411ae9b7e0e0083%23p2s6_29a9fdb2-8e2c-488e-b4f8-15c04bea7a00&courseId=424cd7cfc80b43b88dd4c42c8966666d&sectionId=424cd7cfc80b43b88dd4c42c8966666d1-2&ifPauseAd=1&ifPauseBlur=1&ifCourseComplete=0&ifDrag=0&proxy_url=https://web.chinahrt.com/index.html%23/v_proxy%3FtrainplanId=be50251f5ca649fa9411ae9b7e0e0083%26courseId=424cd7cfc80b43b88dd4c42c8966666d%26sectionId=424cd7cfc80b43b88dd4c42c8966666d1-2&receive_course_record_url=https://yun.chinahrt.com/yunapi/course/update_learn_record&version=ckplayerx1&sub_domain_name=151&allow_study_same_time=0
https://videoadmin.chinahrt.com/videoPlay/play?business_id=gp5&
   signId=151%23be50251f5ca649fa9411ae9b7e0e0083%23p2s6_29a9fdb2-8e2c-488e-b4f8-15c04bea7a00&
   courseId=424cd7cfc80b43b88dd4c42c8966666d&sectionId=424cd7cfc80b43b88dd4c42c8966666d1-1&
   ifPauseAd=1&
   ifPauseBlur=1&
   ifCourseComplete=0&
   ifDrag=0&
   proxy_url=https://web.chinahrt.com/index.html%23/v_proxy%3FtrainplanId=be50251f5ca649fa9411ae9b7e0e0083%26courseId=424cd7cfc80b43b88dd4c42c8966666d%26sectionId=424cd7cfc80b43b88dd4c42c8966666d1-1&receive_course_record_url=https://yun.chinahrt.com/yunapi/course/update_learn_record&
   version=ckplayerx1&
   sub_domain_name=151&
   allow_study_same_time=0

相关文章