Title: Get URL which shortcode is generating?
Last modified: August 20, 2016

---

# Get URL which shortcode is generating?

 *  [Pete](https://wordpress.org/support/users/angio/)
 * (@angio)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/get-url-which-shortcode-is-generating/)
 * 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/](http://wordpress.org/extend/plugins/s3-video/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [Anthony Mills](https://wordpress.org/support/users/anthony_mills/)
 * (@anthony_mills)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/get-url-which-shortcode-is-generating/#post-3372080)
 * 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](http://bucketname.s3.amazonaws.com/video_filename)
 * Cheers
 * Anthony
 *  Thread Starter [Pete](https://wordpress.org/support/users/angio/)
 * (@angio)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/get-url-which-shortcode-is-generating/#post-3372081)
 * 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
 *  Thread Starter [Pete](https://wordpress.org/support/users/angio/)
 * (@angio)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/get-url-which-shortcode-is-generating/#post-3372085)
 * 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
 *  Thread Starter [Pete](https://wordpress.org/support/users/angio/)
 * (@angio)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/get-url-which-shortcode-is-generating/#post-3372086)
 * 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.
 *  Thread Starter [Pete](https://wordpress.org/support/users/angio/)
 * (@angio)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/get-url-which-shortcode-is-generating/#post-3372087)
 * 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>
       ```
   
 *  Plugin Author [Anthony Mills](https://wordpress.org/support/users/anthony_mills/)
 * (@anthony_mills)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/get-url-which-shortcode-is-generating/#post-3372098)
 * 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

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Get URL which shortcode is generating?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/s3-video.svg)
 * [S3 Video Plugin](https://wordpress.org/plugins/s3-video/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/s3-video/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/s3-video/)
 * [Active Topics](https://wordpress.org/support/plugin/s3-video/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/s3-video/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/s3-video/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Anthony Mills](https://wordpress.org/support/users/anthony_mills/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/get-url-which-shortcode-is-generating/#post-3372098)
 * Status: not resolved