Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Connie DeCinko 931 posts 1160 karma points
    Jan 20, 2017 @ 18:39
    Connie DeCinko
    0

    We have a tutorial video created a few years ago by a former staff member. It's a self contained SWF file with layers and controls all inside the SWF. I can add it to a page with the TinyMCE video control but unless I set the SWF to autoplay, all you get is a big blank square where the video should be. You have to know to right click to start playing the SWF.

    Is there a way in Umbraco that I can add a play button?

  • pbl_dk 150 posts 551 karma points
    Jan 24, 2017 @ 19:50
    pbl_dk
    0

    Only thing I can think of, is to use some Jquery and an iFrame. I don't know any way to trigger the playbutton outside of the SWF. So you put the SWF in a static page somewhere and load the static page with autoplay.

    like this. (put in the correct links, pictures and paths).

    <!DOCTYPE html>
    <html>
    <head>
        <meta charset="UTF-8">
        <title>Title of the document</title>
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
        <style>
            #player {
                height: 256px;
                width: 512px;
                background-color: black;
            }
        </style>
    </head>
    <body>
        <div id="player"><img src="/..images/presstoplay.png" alt="Press to play" id="player-imgbtn" height="256" width="512" /></div>
        <script>
    $(document).ready(function () {
        var $iframeTarget = "../staticpages/flash/tutorial_one.html";
        $("#player-imgbtn").click(function () {
            $("#player-imgbtn").remove();
            $("#player").append("<iframe width='512' height='256' frameBorder='0' scrolling='no' src='" + $iframeTarget + "'></iframe>");
        });
    });</script>
    </body>
    </html> 
    
Please Sign in or register to post replies

Write your reply to:

Draft