• I have a website built with wordpress and i want to add a page to stream video, I have a bit of software called Webcam XP, this takes my camera feed and puts it online, this software outputs code so i can add the stream to my website,

    If i add the code the stream does not show or do anything, i can access the stream directly but it will not load via the site,

    The code is exported as javascript , the software says enter this code to your website and it will stream,
    has anyone done this before,

Viewing 7 replies - 1 through 7 (of 7 total)
  • You could try saving the javascript as an external file and then enqueuing it via your theme’s function.php file.

    Thread Starter Tilldogg

    (@tilldogg)

    Hello

    I dont know what you mean with the Enqueing it? sorry not the best on this subject,

    So if i save the script it exports to a .js right ? then what

    thank you for you reply

    I dont know what you mean with the Enqueing it?

    See the page at the link I posted above.

    Thread Starter Tilldogg

    (@tilldogg)

    whoa, thats way over my head, i dont understand all that,

    do i just need something like this

    <?php
    function my_scripts_method() {
        wp_deregister_script( 'jquery' );
        wp_register_script( 'jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js';
        wp_enqueue_script( 'jquery' );
    }
    add_action('wp_enqueue_scripts', 'my_scripts_method');
    ?>

    and change the bold bit for my export?

    [Moderator Note: Please post code or markup snippets between backticks or use the code button.]

    That’s a start but you also need to enqueue your webcam script.

    Thread Starter Tilldogg

    (@tilldogg)

    Sorry Moderator …

    ESMI
    Sorry i dont understand what you mean, i am not a coder or know what to do on this one,

    You need to place your webcam script in an external .js file and then also enqueue it.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Streaming video via my website’ is closed to new replies.