Title: Feature Request
Last modified: August 30, 2016

---

# Feature Request

 *  Resolved [hiphopservers](https://wordpress.org/support/users/hiphopservers/)
 * (@hiphopservers)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/feature-request-396/)
 * Hello:
 * I am requesting an option to duplicate an entry in the videos when adding them
   or an option to populate the URLs in with the pre-formated URL to the host. So
   that the administrator only needs to inter the dynamic variable.
 * Example:
 * Dynamic variable here will be the video file name ‘dyn-video.mp4’
 * rtsp://wowza-server-ip:1935/wowza/mp4:dyn-video.mp4
    [http://wowza-server-ip:1935/wowza/mp4:dyn-video.mp4/manifest.mpd](http://wowza-server-ip:1935/wowza/mp4:dyn-video.mp4/manifest.mpd)
   [http://wowza-server-ip](http://wowza-server-ip)::1935/wowza/mp4:dyn-video.mp4/
   manifest.f4m [http://wowza-server-ip](http://wowza-server-ip)::1935/wowza/mp4:
   dyn-video.mp4/playlist.m3u8 rtmp://wowza-server-ip::1935/wowza/mp4:dyn-video.
   mp4
 * I would ideally just need to add the file name for each new video and the plugin
   would create the URLs for each format supported dynamically. Kinda like a bulk
   add option.
 * [https://wordpress.org/plugins/flowplayer5/](https://wordpress.org/plugins/flowplayer5/)

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

 *  Plugin Author [Ulrich](https://wordpress.org/support/users/grapplerulrich/)
 * (@grapplerulrich)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/feature-request-396/#post-6752445)
 * You should be able to customize the url with the filter `fp5_filter_video_src`.
   You would only add the dynamic file name in the fields.
 *     ```
       /**
        * Define standard URL for videos
        */
       function fp5_filter_video_src( $src, $format, $id ) {
           return 'http://wowza-server-ip:1935/wowza/mp4:' . $src;
       }
       add_filter( 'fp5_filter_video_src', 'fp5_filter_video_src' );
       ```
   
 *  Thread Starter [hiphopservers](https://wordpress.org/support/users/hiphopservers/)
 * (@hiphopservers)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/feature-request-396/#post-6752451)
 * Ulrich:
 * In which file would I add this snippet of code? I understand the concept of what
   to change. However, wouldn’t I need to update the plugin with this code each 
   time your release and update? That is not a big issue but I have not seen a child
   plugin option yet which allows customization of plugins without loosing the customization
   after each update.
 *  Thread Starter [hiphopservers](https://wordpress.org/support/users/hiphopservers/)
 * (@hiphopservers)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/feature-request-396/#post-6752470)
 * Ulrich:
 * The only issue with this modification in my situation is that I have VOD video
   files and live streams. So each link is different for the suffix and prefix of
   the link depending the format used by the site. So this code would need to be
   slightly different for each format used.
 *  Plugin Author [Ulrich](https://wordpress.org/support/users/grapplerulrich/)
 * (@grapplerulrich)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/feature-request-396/#post-6752472)
 * You can change the url depending on the format e.g.
 *     ```
       /**
        * Define standard URL for videos
        */
       function fp5_filter_video_src( $src, $format, $id ) {
           if ( 'video/mp4' == $format ) {
               $src = 'http://wowza-server-ip:1935/wowza/mp4:' . $src;
           }
           return $src;
       }
       add_filter( 'fp5_filter_video_src', 'fp5_filter_video_src' );
       ```
   
 * There are five formats `application/x-mpegurl, video/webm, video/mp4, video/ogg,
   video/flash` that you check for.
 * You can add the snippet to the functions.php of your child theme. The code will
   not be removed when the plugin updates.
 *  Thread Starter [hiphopservers](https://wordpress.org/support/users/hiphopservers/)
 * (@hiphopservers)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/feature-request-396/#post-6752478)
 * Ulrich:
 * I do not clearly see the syntax to append to the link after entering the file
   name. The example provided will work with the following link:
 * `rtsp://wowza-server-ip:1935/wowza/mp4:dyn-video.mp4`
 * However in the following example I need to append ‘/manifest.mpd’ to the end 
   of the URL after the file name for the link to work properly.
 * `http://wowza-server-ip:1935/wowza/mp4:dyn-video.mp4/manifest.mpd`
 * Please provide the proper syntax to get the results desired. Does it matter where
   in the function.php file I add the snippet code?
 *  Plugin Author [Ulrich](https://wordpress.org/support/users/grapplerulrich/)
 * (@grapplerulrich)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/feature-request-396/#post-6752486)
 * Ok, I understand now. This is what you could use. You can add the snippet anywhere
   in functions.php. You just need to look that is not placed within another piece
   of code.
 *     ```
       /**
        * Define standard URL for videos
        */
       function fp5_filter_video_src( $src, $format, $id ) {
           if ( 'video/mp4' == $format ) {
               $src = 'http://wowza-server-ip:1935/wowza/mp4:' . $src;
           }
           if ( 'application/x-mpegurl' == $format ) {
               $src = 'http://wowza-server-ip::1935/wowza/mp4:' . $src . '/playlist.m3u8';
           }
           if ( 'video/webm' == $format ) {
               $src = 'http://wowza-server-ip::1935/wowza/mp4:' . $src . '/manifest.mpd';
           }
           if ( 'video/flash' == $format ) {
               $src = 'http://wowza-server-ip::1935/wowza/mp4:' . $src . '/manifest.f4m';
           }
           return $src;
       }
       add_filter( 'fp5_filter_video_src', 'fp5_filter_video_src', 10, 3 );
       ```
   
 *  Thread Starter [hiphopservers](https://wordpress.org/support/users/hiphopservers/)
 * (@hiphopservers)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/feature-request-396/#post-6752502)
 * Ulrich:
 * I tried to implement this code on my demo site and got segment missing errors
   for $format and $id and it did not alter the URLs in the plugin as described.
 *  Plugin Author [Ulrich](https://wordpress.org/support/users/grapplerulrich/)
 * (@grapplerulrich)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/feature-request-396/#post-6752507)
 * Hey, I corrected the code above. It should work now.
 *  Thread Starter [hiphopservers](https://wordpress.org/support/users/hiphopservers/)
 * (@hiphopservers)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/feature-request-396/#post-6752511)
 * Ulrich:
 * I did manage to get it working but I had to change the link so that the first
   character was a ‘/’ because some of the fields automatically add an ‘[http://&#8217](http://&#8217);
   to the file name after submitting the change.

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

The topic ‘Feature Request’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/flowplayer5_cce0e6.svg)
 * [Flowplayer HTML5 for WordPress](https://wordpress.org/plugins/flowplayer5/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/flowplayer5/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/flowplayer5/)
 * [Active Topics](https://wordpress.org/support/plugin/flowplayer5/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/flowplayer5/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/flowplayer5/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [hiphopservers](https://wordpress.org/support/users/hiphopservers/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/feature-request-396/#post-6752511)
 * Status: resolved