﻿function initializeVideojsPlayer(containerID, width, height, filePath, autoplay) {
    var container = jQueryCS144(containerID);
    if (container.length == 0) {
        return;
    }
    container.addClass("video-js-box");
    container.width(width);
    container.find(".video-js").attr("width", width);
    container.find(".video-js").attr("height", height);
    container.find(".cs-video-preview").attr("width", width);
    container.find(".cs-video-preview").attr("height", height);
    container.find(".vjs-flash-fallback").attr("width", width);
    container.find(".vjs-flash-fallback").attr("height", height);
    if (filePath !== undefined && filePath != "") {
        VideoJS.setupAllWhenReady();
    }
    if (autoplay) {
        container.find(".video-js").attr("autoplay", "autoplay");
    }
}
