HTTP install is using HTTPS URL's for embeding

I have installed on Ubuntu 14.04.2 using non-SSL. I am getting some address’ (not all) with https instead of http. I believe it should only be adding https if I checked the “Support for HTTPS embed code” box.

It is also adding the port number (80) to the URL which I don’t understand why when the http standard port is 80. Later on I would like to do a dual http and https setup (if it is possible) and that port number being added would make it not work.

This is the source of the “standalone page”.

<!DOCTYPE html>
    <!--[if lt IE 7]>      <html class="lt-ie10 lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
    <!--[if IE 7]>         <html class="lt-ie10 lt-ie9 lt-ie8"> <![endif]-->
    <!--[if IE 8]>         <html class="lt-ie10 lt-ie9"> <![endif]-->
    <!--[if lt IE 10]>     <html class="lt-ie10"> <![endif]-->
    <!--[if gt IE 8]><!--> <html> <!--<![endif]-->
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta property="og:url" content="http://videos.******.com.au/index.php/extwidget/preview/partner_id/101/uiconf_id/23448201/entry_id/0_nqu77o44/embed/dynamic?&flashvars[streamerType]=auto" />
        <meta property="og:title" content="Ed Sheeran - Thinking Out Loud" />
        <meta property="og:description" content="" />
        <meta property="og:type" content="video.other" />
        <meta property="og:image" content="http://videos.******.com.au/p/101/sp/10100/thumbnail/entry_id/0_nqu77o44/version/100000/acv/82/width/800" />
        <meta property="og:image:secure_url" content="https://videos.******.com.au/p/101/sp/10100/thumbnail/entry_id/0_nqu77o44/version/100000/acv/82/width/800" />
        <meta property="og:video" content="https://videos.******.com.au:80/index.php/kwidget/cache_st/1435800391/wid/_101/uiconf_id/23448201/entry_id/0_nqu77o44" />
        <meta property="og:video:width" content="800" />
        <meta property="og:video:height" content="450" />	
        <meta property="og:video:type" content="application/x-shockwave-flash" />
        <meta name="twitter:card" content="player"/>
        <meta name="twitter:site" content="@kaltura"/>
        <meta name="twitter:creator" content="@kaltura"/>
        <meta name="twitter:title" content="Ed Sheeran - Thinking Out Loud" />
        <meta name="twitter:description" content="" />
        <meta name="twitter:image" content="https://videos.******.com.au/p/101/sp/10100/thumbnail/entry_id/0_nqu77o44/version/100000/acv/82/width/800" />
        <meta name="twitter:player" content="https://videos.******.com.au:80/p/101/sp/10100/embedIframeJs/uiconf_id/23448201/partner_id/101?iframeembed=true&entry_id=0_nqu77o44&flashvars[streamerType]=auto" />
        <meta name="twitter:player:stream" content="https://videos.******.com.au:80/p/101/sp/10100/playManifest/entryId/0_nqu77o44/flavorId/0_jzr9mhaa/format/url/protocol/http/a.mp4" />
        <meta name="twitter:player:stream:content_type" content="video/mp4"/>
        <meta name="twitter:player:height" content="450" />
        <meta name="twitter:player:width" content="800" />
        <meta property="og:video" content="https://videos.******.com.au:80/p/101/sp/10100/playManifest/entryId/0_nqu77o44/flavorId/0_jzr9mhaa/format/url/protocol/http/a.mp4" />
        <meta property="og:video:type" content="video/mp4" />
        <meta property="og:site_name" content="Kaltura" />
        <title>Ed Sheeran - Thinking Out Loud</title>
        <link type="text/css" rel="stylesheet" href="/lib/css/shortlink.css" />
        <style>
            #main .content .title h1 { font-size: 24px; font-weight: bold; }
            #main p { margin-bottom: 20px; font-size: 18px; }
        </style>
        <!--[if lte IE 7]>
            <script src="/lib/js/json2.min.js"></script>
        <![endif]-->
        <script src="/lib/js/jquery-1.8.3.min.js"></script>
        <script src="/lib/js/KalturaEmbedCodeGenerator-1.0.6.min.js"></script>	
    </head>
    <body>
        <div id="main" style="position: static;">
            <div class="content">
                <div class="title">
                    <h1>Ed Sheeran - Thinking Out Loud</h1>
                </div>
                <div class="contwrap">
                    <p></p>
                        <div id="videoContainer">
                            <div id="framePlayerContainer">
                                <script>
                                    var scriptToEval = '';
                                    var code = new kEmbedCodeGenerator({"host":"videos.******.com.au:80","securedHost":"videos.******.com.au:80","partnerId":101,"protocol":"http","embedType":"dynamic","uiConfId":23448201,"width":"800","height":"450","includeKalturaLinks":true,"cacheSt":1435800391,"entryId":"0_nqu77o44","includeSeoMetadata":true,"entryMeta":{"name":"Ed Sheeran - Thinking Out Loud","description":null,"thumbnailUrl":"http:\/\/videos.******.com.au\/p\/101\/sp\/10100\/thumbnail\/entry_id\/0_nqu77o44\/version\/100000\/acv\/82","duration":296},"flashVars":{"streamerType":"auto"}}).getCode();
                                    var embedType = 'dynamic';
                                    var ltIE10 = $('html').hasClass('lt-ie10');
                                    // IE9 and below has issue with document.write script tag
                                    if( ltIE10 && (embedType == 'dynamic' || embedType == 'thumb') ) {
                                        $(code).each(function() {
                                            if( ! this.outerHTML ) return true;
                                            if( this.nodeName === 'SCRIPT' ) {
                                                // If we have external script, append to head
                                                if( this.src ) {
                                                    $.getScript(this.src, function() {
                                                        $.globalEval(scriptToEval);
                                                    });
                                                } else {
                                                    scriptToEval += this.innerHTML;
                                                }
                                            } else {
                                                // Write any other elements
                                                document.write(this.outerHTML);
                                            }
                                        });
                                    } else {
                                        document.write(code);
                                    }
                                </script>
                            </div>
                        </div>
                    <!--<br /><p>This page is for preview only. Not for production use.</p>-->
                </div><!-- end contwrap -->
            </div><!-- end content -->
        </div><!-- end #main -->
    </body>
</html>

Also on facebook sharing (and I assume other social shares) is using HTTPS instead of HTTP which causes nothing to play.

<head>
    <meta charset="utf-8">
    <script>function envFlush(a){function b(c){for(var d in a)c[d]=a[d];}if(window.requireLazy){window.requireLazy(['Env'],b);}else{window.Env=window.Env||{};b(window.Env);}}</script>
    <title>Facebook</title>
    <link type="text/css" rel="stylesheet" href="https://fbstatic-a.akamaihd.net/rsrc.php/v2/y5/r/M5AECnVXWuV.css" data-bootloader-hash="kLsEw" data-permanent="1">
    <script src="https://fbstatic-a.akamaihd.net/rsrc.php/v2/yr/r/0WxISPSMfZk.js" data-bootloader-hash="KMy+E" crossorigin="anonymous"></script>
    <script>(require("ServerJSDefine")).handleDefines([["CSSLoaderConfig",[],{"timeout":5000,"loadEventSupported":true},619]]);new (require("ServerJS"))().handle({"require":[["lowerDomain"],["PageHooks"]]});</script>
    <script crossorigin="anonymous" async="" src="https://fbstatic-a.akamaihd.net/rsrc.php/v2/yc/r/znKxWETHFFg.js"></script>
    <script crossorigin="anonymous" async="" src="https://fbstatic-a.akamaihd.net/rsrc.php/v2/yD/r/quDgFTwLqDI.js"></script>
    <script crossorigin="anonymous" async="" src="https://fbstatic-a.akamaihd.net/rsrc.php/v2/y1/r/fXcW2q6wDJt.js"></script>
    <script crossorigin="anonymous" async="" src="https://fbstatic-a.akamaihd.net/rsrc.php/v2/yS/r/yQW7PPGoIXY.js"></script>
</head>
<body class="gecko x1 Locale_en_US" dir="ltr">
    <div id="swf_placeholder">
        <span>
            <object type="application/x-shockwave-flash" data="https://videos.******.com.au:80/index.php/kwidget/cache_st/1435804629/wid/_101/uiconf_id/23448201/entry_id/0_9t2iq6u0" id="f2b589103a1ff96" height="274" width="487">
                <param name="allowscriptaccess" value="never">
                <param name="flashvars" value="height=274&amp;width=487">
                <param name="movie" value="https://videos.******.com.au:80/index.php/kwidget/cache_st/1435804629/wid/_101/uiconf_id/23448201/entry_id/0_9t2iq6u0">
                <param name="swf" value="https://videos.******.com.au:80/index.php/kwidget/cache_st/1435804629/wid/_101/uiconf_id/23448201/entry_id/0_9t2iq6u0">
                <param name="id" value="swf_u_jsonp_2_20">
                <param name="holder" value="u_jsonp_2_20">
                <param name="color" value="#FFFFFF">
                <param name="width" value="487">
                <param name="height" value="274">
                <param name="version" value="0">
                <param name="scale" value="scale">
                <param name="allowFullScreen" value="true">
                <param name="salign" value="tl">
                <param name="wmode" value="opaque">
            </object>
        </span>
    </div>
    <script type="text/javascript">requireLazy(["Bootloader"], function(Bootloader) {Bootloader.setResourceMap({"YzwHG":{"type":"js","src":"https:\/\/fbstatic-a.akamaihd.net\/rsrc.php\/v2\/yc\/r\/znKxWETHFFg.js","crossOrigin":1},"kI3lG":{"type":"js","src":"https:\/\/fbstatic-a.akamaihd.net\/rsrc.php\/v2\/yD\/r\/quDgFTwLqDI.js","crossOrigin":1},"bGWcj":{"type":"js","src":"https:\/\/fbstatic-a.akamaihd.net\/rsrc.php\/v2\/y1\/r\/fXcW2q6wDJt.js","crossOrigin":1},"n09pR":{"type":"js","src":"https:\/\/fbstatic-a.akamaihd.net\/rsrc.php\/v2\/yS\/r\/yQW7PPGoIXY.js","crossOrigin":1}});if (false) {Bootloader.enableBootload({});}});</script>
    <script type="text/javascript">requireLazy(["InitialJSLoader"], function(InitialJSLoader) {InitialJSLoader.loadOnDOMContentReady(["YzwHG","kI3lG","bGWcj","n09pR"]);});</script>
    <script type="text/javascript">(require("ServerJSDefine")).handleDefines([["FlashVersionFix",[],{"enable":false},859]]);require("InitialJSLoader").handleServerJS({"require":[["ExternalIFrameFlash","init",[],[]]]});</script>
</body>

During the install I made sure I removed the port number that was being automatically populated in the installers questions. I noticed that system.ini stll had :80 at the end of “KALTURA_VIRTUAL_HOST_NAME” which I removed and ran “sudo dpkg-reconfigure kaltura-front” but it did not help.

Could someone please help me as I have been playing around with this software for a couple of weeks now trying to get it running smoothly.

Hello,

Can you run:
mysql> select * from kaltura.permission WHERE permission.NAME=‘FEATURE_KMC_ENFORCE_HTTPS’\G

If you get a result, delete the record and try again.

Let me know if that solves it,

mysql> select * from kaltura.permission WHERE permission.NAME=‘FEATURE_KMC_ENFORCE_HTTPS’\G
Empty set (0.00 sec)

Do you have any other suggestions? I am lost and can’t find where the https and port 80 is coming from.