• Skip to content
  • Skip to primary sidebar
  • Skip to footer

Foliovision

Main navigation

  • Weblog
    • FV Player
    • WordPress
    • Video of the Week
    • Case Studies
    • Business
  • About
    • Testimonials
    • Meet the Team
    • We Support
    • Careers
    • Contact
    • Pricing
  • Products
  • Support
    • FV Player Docs
    • Pro Support
  • Login
  • Basket is empty

FV Flowplayer Default Expiry Time isn’t working no matter what I set it to.

[Solved]

Foliovision › Forums › FV Player › Troubleshooting › FV Flowplayer Default Expiry Time isn’t working no matter what I set it to.

  • rayzorg 10 years, 1 month ago

    I am using FV Flowplayer with Amazon S3 video content in a WordPress Multisite environment. The video is playing properly, but the default expiry time isn’t working no matter what I set it to. It doesn’t matter if I have “forced” selected or not. I have tried on ie, firefox, chrome browsers. Is there something I am not understanding? I want to prevent users from reusing the link or downloading the video.

    Also, do you have a quick example of how to use the filter “fv_flowplayer_amazon_expires”?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Martin 10 years ago

    Hello rayzorg,

    the minimal expiration time is 900 seconds (15 minutes). This can be changed using fv_flowplayer_amazon_expires filter. It works as any other WordPress filter.

    Here’s a code which changes the expiration to 10 minutes for all videos: https://gist.github.com/foliovision/3dc5db291f0216df2eb7

    Thanks,
    Martin

    rayzorg 10 years ago

    Hey Martin,

    Thank you for your info regarding S3 Video url expiry. I tested the filter on my localhost multisite wordpress install and it worked perfectly. The only issue I am having is when I implemented it on hosted server, the expiry seems to stay the same even when I leave a wordpress video page and reopen that same page. The expiry seems to stay the same until I log out and log back in. For instance, below are the “access denied” responses from a wordpress video page that I tried running, then I closed the page and reopened it again. The responses have the same expiry. I was thinking it might be wordfence cache but we hadn’t implemented that yet.

    <Error>
    AccessDenied
    <Message>Request has expired</Message>
    <X-Amz-Expires>10</X-Amz-Expires>
    <Expires>2015-03-26T21:02:29Z</Expires>
    <ServerTime>2015-03-26T21:03:01Z</ServerTime>
    <RequestId>157A2B58D6FC2FF3</RequestId>
    <HostId>
    8QTAiQK0Q8Fof/fQvxKYENw04Gf2TOgxOmmYgQxccD66dWIbufLGw0087BGDQLD3
    </HostId>
    </Error>

    AccessDenied
    <Message>Request has expired</Message>
    <X-Amz-Expires>10</X-Amz-Expires>
    <Expires>2015-03-26T21:02:29Z</Expires>
    <ServerTime>2015-03-26T21:23:50Z</ServerTime>
    <RequestId>AD228F279D0A3718</RequestId>
    <HostId>
    CDsv2OYGzh4cb5DH3x0tzjyYPUq3eK0LA28eCqgZ4OywpCAGL4iN///wySXunI5a
    </HostId>
    </Error>

    Thanx
    Ray

    Martin 10 years ago

    Hello rayzorg,

    check if your WordPress pages are served with the Expires or Cache control HTTP headers.

    If you use a WP cache plugin (or any caching mechanism which might cause the links in HTML to expire), you need to force set the default expiry time: https://foliovision.com/player/secure-amazon-s3-guide#wp-cache

    If you buy our license, you will get FV Player Pro extension plugin which lets you use CloudFront signed URLs. These are generated on play – so the issue with HTML caching is solved that way.

    Thanks,
    Martin

    Raylene 10 years ago

    I have my W3 Total cache set based on several help guides’ recommendations.

    These are the expiry times that were recommended:
    CSS & JS – 31536000 s
    HTML & XML – 7200 s
    Media & other objects – 31536000 s

    So… what do I set the Default Expire Time to for Amazon S3 Protected Content?

    Alec Kinnear 10 years ago
    Avatar photo

    Hi Raylene,

    You should set your S3 protected content expiry settings in the FV Player settings page (under Amazon S3 Protected Content).

    Presumably as it’s protected content you might want to leave our default of 20 minutes in there (if the content is longer we allow longer expiry times automatically).

    W3 Total Cache affects your S3 Protected Content as users might get old link if they get cached HTML. So set it to more than 2 hours which you have for W3 Total Cache HTML cache timeout. Or lower that to achieve better protection.

    Let us know how it goes.

    Making the web work for you, Alec

    Raylene 10 years ago

    HI Alec!

    One of my clients had an issue with a 31 minute long video today. It would only play part of the video. I assumed it was an issue with the Cache Timeout and the expiry setting in the FV Player Amazon S3 Protected Content area).

    You don’t think that was the issue?

    Alec Kinnear 10 years ago
    Avatar photo

    Hi Raylene,

    Try setting the default timeout value higher (say 60 minutes). We have our own set much higher. We’re not that worried about piracy and I’m not sure a short timeout number makes much of a difference anyway – with S3 a pirate can download your whole video within whatever window you give. You only inconvenience the honest user who may stop and start your longer video several times before finishing it.

    Let us know how if a longer default expiry time works.

    Thanks!

    Alec

    Martin 10 years ago

    Hello Raylene,

    I talked about this with Alec and there was a misunderstanding.

    W3 Total Cache (any plugin which caches HTML) affects our Amazon S3 integration.

    If the HTML cache timeout is set to 7200 seconds (2 hours), our Amazon S3 timeout needs to be set to that as well + the something extra. Imagine you arrive to a page right before the HTML expires – you might get 2 hours old link – which still needs to work. So it could be 7200 seconds + video length, but our plugin doesn’t do it that way right now.

    In our guide we recommend twice as much, just to be safe: https://foliovision.com/player/secure-amazon-s3-guide#wp-cache

    Thanks,
    Martin

Viewing 8 replies - 1 through 8 (of 8 total)
Reply To: FV Flowplayer Default Expiry Time isn’t working no matter what I set it to.



Please Sign in or Register to upload files.

Related Posts

  1. FV Flowplayer adds default volume setting

  2. Firefox Quickfind: Hard to Type an Apostrophe

    Firefox Quickfind: Hard to Type an Apostrophe

  3. Download YouTube Videos Hasslefree | Great Linkbait

    Download YouTube Videos Hasslefree | Great Linkbait

Primary Sidebar

Sign in Register
FV Player Docs Post New Topic

Welcome

to Foliovision support forums! We'll be happy to provide free support to resolve all the reported bugs. You always can start by specifying your OS and browser and steps to reproduce the bug.

If you need help with the installation on your site, please submit a request for a Pro Support Incident. We'll have you up and running in no time, with detailed instructions on how to resolve your issue yourself in the future.

Facing a hard to solve WordPress problem? On a tight deadline?

Let us take care of it for you
right now.

Pro Support Buy FV Player

Footer

Our Plugins

  • FV WordPress Flowplayer
  • FV Thoughtful Comments
  • FV Simpler SEO
  • FV Antispam
  • FV Gravatar Cache
  • FV Testimonials

Free Tools

  • Pandoc Online
  • Article spinner
  • WordPress Password Finder
  • Delete LinkedIn Account
  • Responsive Design Calculator
Foliovision logo
All materials © 2025 Foliovision s.r.o. | Panská 12 - 81101 Bratislava - Slovakia | info@foliovision.com
  • This Site Uses Cookies
  • Privacy Policy
  • Terms of Service
  • Site Map
  • Contact
  • Tel. ‭+421 2/5292 0086‬

We are using cookies to give you the best experience on our website.

You can find out more about which cookies we are using or switch them off in .

Powered by  GDPR Cookie Compliance
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

Necessary Cookies

Strictly Necessary Cookie allow you to log in and download your software or post to forums.

We use the WordPress login cookie and the session cookie.

If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.

Support Cookies

Foliovision.com uses self-hosted Rocket.chat and self-hosted Freescout support desk to provide support for FV Player users. These cookies allow our visitors to chat with us and/or submit support tickets.

We are delighted to recommend self-hosted Rocket.chat and especially Freescout to other privacy-conscious independent publishers who would prefer to self-host support.

Please enable Strictly Necessary Cookies first so that we can save your preferences!

3rd Party Cookies

This website uses Google Analytics and Statcounter to collect anonymous information such as the number of visitors to the site, and the most popular pages.

Keeping this cookie enabled helps us to improve our website.

We reluctantly use Google Analytics as it helps us to test FV Player against popular Google Analytics features. Feel free to turn off these cookies if they make you feel uncomfortable.

Statcounter is an independent Irish stats service which we have been using since the beginning of recorded time, sixteen years ago.

Please enable Strictly Necessary Cookies first so that we can save your preferences!