HTTPS视频交付

如果查看器在配置中工作(如本节开头所述),则可以在HTTPS(安全)和HTTP(不安全)模式下发布视频交付。 在默认配置中,视频传输协议严格遵循嵌入网页的传输协议。 但是,可以强制HTTPS视频交付,而不考虑使用嵌入网页时使用的协议 VideoPlayer.ssl 配置属性。 (在创作模式下,视频预览始终通过HTTPS安全地交付。)

根据您在Adobe Experience Manager中使用的发布Dynamic Media视频的方法, VideoPlayer.ssl 配置属性的应用方式不同,如下所示:

  • 如果您发布带有URL的Dynamic Media视频,则会附加 VideoPlayer.ssl 到URL。 例如,要强制安全视频交付,需附加 &VideoPlayer.ssl=on 以下查看器URL示例的结尾:

    https://demos-pub.assetsadobe.com/etc/dam/viewers/s7viewers/html5/InteractiveVideoViewer.html?asset=%2Fcontent%2Fdam%2Fmarketing%2Fshoppable-video%2Fadobe-axis-demo%2FAdobe_AXIS_V3_GRADED-HD.mp4&config=/etc/dam/presets/viewer/Shoppable_Video_light&serverUrl=https%3A%2F%2Fadobedemo62-h.assetsadobe.com%2Fis%2Fimage%2F&contenturl=%2F&config2=/etc/dam/presets/analytics&videoserverurl=https://gateway-na.assetsadobe.com/DMGateway/public/demoCo&interactivedata=content/dam/_VTT/marketing/shoppable-video/adobe-axis-demo/Adobe_AXIS_V3_GRADED-HD.mp4.svideo.vtt&VideoPlayer.contenturl=https://adobedemo62-h.assetsadobe.com/is/content&VideoPlayer.ssl=on
    

    另请参阅 将URL关联到您的Web应用程序

  • 如果您发布包含嵌入代码的Dynamic Media视频,则需添加 VideoPlayer.ssl 到嵌入代码片段中其他查看器配置参数的列表。 例如,要强制HTTPS视频交付,您需要附加 &VideoPlayer.ssl=on 如以下示例所示:

    <style type="text/css">
     #s7interactivevideo_div.s7interactivevideoviewer{
       width:100%;
       height:auto;
     }
    </style>
    <script type="text/javascript" src="https://demos-pub.assetsadobe.com/etc/dam/viewers/s7viewers/html5/js/InteractiveVideoViewer.js"></script>
    <div id="s7interactivevideo_div"></div>
    <script type="text/javascript">
     var s7interactivevideoviewer = new s7viewers.InteractiveVideoViewer({
      "containerId" : "s7interactivevideo_div",
      "params" : {
       "VideoPlayer.ssl" : "on",
       "serverurl" : "https://adobedemo62-h.assetsadobe.com/is/image",
       "contenturl" : "https://demos-pub.assetsadobe.com/",
       "config" : "/etc/dam/presets/viewer/Shoppable_Video_light",
       "config2": "/etc/dam/presets/analytics",
       "videoserverurl": "https://gateway-na.assetsadobe.com/DMGateway/public/demoCo",
       "interactivedata": "content/dam/_VTT/marketing/shoppable-video/adobe-axis-demo/Adobe_AXIS_V3_GRADED-HD.mp4.svideo.vtt",
       "VideoPlayer.contenturl": "https://adobedemo62-h.assetsadobe.com/is/content",
       "asset" : "/content/dam/marketing/shoppable-video/adobe-axis-demo/Adobe_AXIS_V3_GRADED-HD.mp4" }
     })
     /* // Example of interactive video event for quick view.
       s7interactivevideoviewer.setHandlers({
       "quickViewActivate": function(inData) {
         var sku=inData.sku; //SKU for product ID
        //To pass other parameter from the hotspot, you will need to add custom parameter during the hotspot setup as parameterName=value
        loadQuickView(sku); //Replace this call with your quickview plugin
        //Please refer to your quickviewer plugin for the quickview call
        },
    "initComplete":function() {
        //--- Attach quickview popup to viewer container so popup will work in fullscreen mode ---
        var popup = document.getElementById('quickview_div'); // get custom quick view container
        popup.parentNode.removeChild(popup); // remove it from current DOM
        var sdkContainerId = s7interactivevideoviewer.getComponent("container").getInnerContainerId(); // get viewer container component
        var inner_container = document.getElementById(sdkContainerId);
        inner_container.appendChild(popup); //Attach custom quick view container to viewer
        }
       });
     */
     s7interactivevideoviewer.init();
    </script>
    

    另请参阅 在网页上嵌入视频.

在此页面上