WordPress.org

Ready to get started?Download WordPress

Forums

S3 Video Plugin
Get URL which shortcode is generating? (7 posts)

  1. Pete
    Member
    Posted 1 year ago #

    Hi is it possible to display the URL which the shortcode will generate next to the list of all videos / short codes. I need to use the complete URL in a template instead of shortcodes.

    http://wordpress.org/extend/plugins/s3-video/

  2. Anthony Mills
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Pete,
    No you can't at present, if its a feature people would like its easy enough to add it to a future version. The URL can be worked out if its needed regardless manually as it follows the format below:

    http://bucketname.s3.amazonaws.com/video_filename

    Cheers

    Anthony

  3. Pete
    Member
    Posted 1 year ago #

    Hi Anthony,

    I thought i'd need the URL to embed within a video player in a custom template but turns out the short codes work just fine rendering on the page

    Thanks
    Pete

  4. Pete
    Member
    Posted 1 year ago #

    Actually Anthony, the embed code i'm using seems to be defaulting to a flash player which doesn't play the videos on my phone.

    On FlowPlayer's website I see they do use an HTML5 player. Is flash being used because of the embed code? If so is there a way to switch this, i'm looking at the code in existing-videos.php

    Thanks

  5. Pete
    Member
    Posted 1 year ago #

    I can probably add my own jQuery function to pop up and display the full URL to the video, then place it into a post and wrap it around the default FlowPlayer code to use HTML5 if you can just let me know if there's a way to do it with the embed code.

  6. Pete
    Member
    Posted 1 year ago #

    Ok here's what I used for the full path to video.

    jQuery("a#getURL").click(function() {
    		var videoFile = jQuery(this).attr("title");
    		var linkText = '<h2>Full path to video on s3: </p><br>';
    		var shortLink = '<p><input type=\"text\" readonly=\"readonly\" name=\"shortlink\" value=\"http://' + awsBucket + '.s3.amazonaws.com/' + videoFile + '" style=\"width: 450px;\"></p>';
    		jQuery("#videoInfo").html(linkText + shortLink + '<br>');
    		jQuery().colorbox({width:"50%", inline:true, href:"#videoInfo"});
    	  });
    <a href="#" title="<?php echo $existingVideo['name']; ?>" id="getURL">
    										Get URL
    									</a>
  7. Anthony Mills
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Pete,
    Sorry on the delay in getting back to you, for some reason i never seem to get emails when a support topis is updated.

    If the HTML5 flow player is not working for you have you tried using the VideoJS player?

    What sort of video file is it? I know it seems stupid but its worth checking its not an .flv file or something that needs to be played by flash.

    If you do what to play with the actual embed code I would recommend you take a look at the file /s3-video/views/video-management/play-flowplayer.php I just based that off the examples on the flowplayer site so if you can find a better way to do it I am all ears :-)

    Cheers

    Anthony

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.