HTTPS視訊傳送

注意

「安全視訊傳送」僅適用於安裝功能套件-13480的AEM 6.2,以及安裝功能套件NPR-15011的AEM 6.1。

如果檢視器如本節開頭所述的設定運作,發佈的視訊傳送可在HTTPS(安全)和HTTP(不安全)模式下進行。 在預設配置中,視訊傳送通訊協定會嚴格遵循內嵌網頁的傳送通訊協定。 不過,不論使用VideoPlayer.ssl組態屬性內嵌網頁所使用的通訊協定,都可強制HTTPS視訊傳送。 (請注意,在「作者」模式中的視訊預覽一律會透過HTTPS安全地傳送。)

根據您在AEM中使用的發佈動態媒體視訊方法,VideoPlayer.ssl組態屬性的套用方式與下列所示不同:

  • 如果您使用URL發佈動態媒體影片,請將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應用程式

  • 如果您使用內嵌程式碼發佈動態媒體視訊,請將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>
    

    另請參閱將視訊內嵌至網頁

本頁內容

Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free