• Hi all I have some javascript that adds the jw video player from where I have it stored in amazon (with streaming info) and then I use this code to show the video:
    <a class="rtmp" href="mp4:bentvid"><img src="https://s3.amazonaws.com/videoexample/splash_image.gif" alt="PLAY ME"></a>
    Is there any way to automate, maybe a plugin to showing the video so the code is always the same and it is easy to add videos?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Copywrite

    (@copywrite2012)

    I have downloaded several plugins that I am going to try but I was wondering what other people use/advise? Thanks

    I have added a small addition in functions.php that always insert a few lines when I start a new post. Maybe you could use the same method? If you do not have a functions.php file already, it is as simple as making one located at root/wp-content/themes/yourthemename/functions.php

    <?php
    
    add_filter( 'default_content', 'my_videos_content' );
    
    function my_videos_content( $content ) {
    
    	$content = "<a class="rtmp" href="mp4:bentvid"><img src="https://s3.amazonaws.com/videoexample/splash_image.gif" alt="PLAY ME"></a>";
    
    	return $content;
    }
    
    ?>
    Thread Starter Copywrite

    (@copywrite2012)

    Thanks Peetra, the code I added is for a specific video. So if I put that code in the functions.php it would always show the users bentvid.mp4 in this specific case. How can I make it show any video I upload?

    Maybe I should just put the javascript that load the player in functions.php?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Playing videos fine now how to add working code to post’ is closed to new replies.