• Hi, first thx for your great plugin.

    The problem

    Most of our pages are running on https.
    The problem of https is that most browsers only support iframes src attributes with https.
    The reason is mixed content blocking
    https://support.mozilla.org/en-US/kb/mixed-content-blocking-firefox

    when we use the plumwd_twitch_stream shortcode e.g. [plumwd_twitch_stream channel="beyondthesummit"] the iframe src attribute use http which triggers a mixed content blocking.

    The fix

    This issue should be quite easy to fix.
    therefore edit the function display_plumwd_twitch_stream in index.php line no 189

    currently
    $display_stream = '<iframe src="https://www.twitch.tv/'.$channel.'/embed" frameborder="0" scrolling="no" height="'.$height.'" width="'.$width.'"></iframe>';

    should be
    $display_stream = '<iframe src="https://www.twitch.tv/'.$channel.'/embed" frameborder="0" scrolling="no" height="'.$height.'" width="'.$width.'"></iframe>';

    The reason

    twitch itself support http and https.
    when on a http or https page an iframe src attribute with https is used you will not get a mixed content blocking.

  • The topic ‘plumwd_twitch_stream does not support https’ is closed to new replies.