• 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

Quality Switching Naming scheme: does not accept _m

[Solved]

Foliovision › Forums › FV Player › Bug Reports › Quality Switching Naming scheme: does not accept _m

  • Michael 1 year, 6 months ago

    Hi Martin.
    I am using FV PRO and using a shortcode with the qsel=true parameter.
    In FV settings I entered three qualities:
    _hd HD
    _sd SD
    _m Mobile

    For whatever reason, the Mobile version can not be chosen in the player in the front end!
    If I change the setting from _m to any other single letter of the alphabet, it works, for example _x. If I change it from _m to _mob it also works.
    All my mobile version videos are labeled with _m at the end of the filename (a few thousand of them on S3) So I prefer to not change them all, but instead just use _m.

    When trying to switch to Mobile on the front end player, it always reverts to the default quality (_hd), as if there was no file with _m present in that folder on S3.

    Any ideas?

Viewing 14 replies - 1 through 14 (of 14 total)
  • Martin 2 years ago

    Hello Michael,

    That’s very strange. I don’t see why only _m would not work and why it would be excluded. I was not able to reproduce the behavior either.

    FV Player Pro runs a check for the individual video qualities when you click to play the video. Maybe it fails to load your _m version for some reason.

    Please try to post one of your _m videos into a new player without Quality Switching enabled and see if it plays.

    Then we should see if it’s a problem with the S3 signature.

    Thanks,
    Martin

    Michael 2 years ago

    Yes, the same video file plays well, when without the quality switching.

    Interestingly also the ending _mo does not work!

    I tried other combinations, like _mx and they work!

    When I define in the shortcode the same video with ending in _m as the:
    mobile=”https://….

    it also works and plays properly.

    Thanks,

    Mike

    Martin 2 years ago

    Hello Michael,

    Please create a publicly accessible test page where we can see:

    • the player with quality switching enabled, where I can see the _m quality failing
    • player with just the _m video and quality switching disabled

    Thanks,
    Martin

    Michael 2 years ago

    I made another test.

    I used the _m filename as the default quality and _hd and _sd as the alternative qualities.
    In the shortcode editor it then gives me the message that:
    Your primary video is not matching the quality prefixes!
    Can I send you a URL for your requested page somewhere outside the forum?

    Martin 2 years ago

    Hello Michael,

    Based on what you wrote about “Your primary video is not matching the quality prefixes!” it seems that there might be some invisible character in your wp-admin -> FV Player -> Settings -> Quality Switching in the field where _m is entered. Please try to remove it and add it again.

    You can reply with the URL to the forum email notification.

    Thanks,
    Martin

    Michael 2 years ago

    Hi Martin,

    I checked and deleted the entire naming scheme in settings and set it up
    all new, still the same.

    The first video has the video selector with 3 qualities, the Mobile
    quality is the one with _m and is not working.

    The second video in the list is only the very same video withe the _m
    ending.

    Thanks!

    With very best wishes,
    Mike

    Martin 1 year ago

    Hello Mike,

    The problem is that _m is a too common substring – it matches all of your video files. So the mobile quality is there but it’s never switched to.

    Please deactivate and delete the FV Player Pro plugin you are using, then hit “Install Pro extension” at the top of the wp-admin -> FV Player -> Settings screen.

    Then switch to the Beta release using the steps from here if you are not already using it: https://foliovision.com/player/basic-setup/switching-fv-player-pro-to-beta


    Then it will play the _m video quality too.

    Thanks,
    Martin

    Michael 1 year ago

    Thanks, for checking that out. Not sure I understood properly, beacuse it is not that all my video files end with _m, only about 30 percent.

    In any case, I did as you advised and now it is working fine. Switching to Beta did the final trick.
    thanks!

    Martin 1 year ago

    Hello Mike,

    I’ll wait 1-2 version releases and then put it into the Release version. It will be in the changelog too.

    Thanks,
    Martin

    Michael 1 year ago

    Hi Martin,
    A follow up issue/question:
    When having all 3 quality video files in the S3 bucket, the video player properly shows all qualities for selection. (HD/SD/Mobile).

    When the SD quality is not present in the S3 bucket, in my mind the player should not show SD as an option, but only HD and Mobile, since those are the 2 files present.
    Instead, the player shows HD and SD (SD plays back the mobile video)
    Any help/advise how to change that is very appreciated!
    Thank you,
    Mike

    Michael 1 year ago

    Update:
    When clearing the browser cache, upon first loading of the player, it properly only shows HD and mobile in the player. Once I click on mobile, the choice changes from mobile to SD, and the mobile video is served while SD is displayed in the player as the choosen choice. From then onward, it only shows HD and SD as the quality options.

    Martin 1 year ago

    Hello Michael,

    We actually got that same bug report a week ago and we only figured it out and fixed it now.

    Please deactivate and delete the FV Player Pro plugin you are using, then hit “Install Pro extension” at the top of the wp-admin -> FV Player -> Settings screen.

    That way you will get the fix immediately and if it works we will put into into next release too.

    Thanks,
    Martin

    Michael 1 year ago

    Yes, it is working now after de-activating, deleting and re-installing the Pro-version, Thanks!

    Related question:
    In the FV player settings I have set the pairing for qsel like this:

    _hd = HD (default)
    _m = Mobile

    When loading a player which has both qualities available, I can see in the player these 2 options: HD / Mobile

    Once I choose HD, the displayed selection in the player remains: HD
    Once I choose Mobile, the displayed selection in the player changes to: M (just a capital ‘M’)
    Seems I can not change the active value for Mobile?

    Martin 1 year ago

    Hello Michael,

    It actually does that on purpose. The logic is as following:

    // Show "M" it the quality label matches "mobile"
    var label = labels[index].match(/mobile/i) ? 'M' : labels[index];
    
    // convert the numeric label like 1080p into M, SD, HD or 4K
    var height = parseInt(labels[index]);
    
    // skip he conversion if there is no number of if the label is already {number}K (4K, 8K, ...)
    if( height > 0 && !labels[index].match(/\dK$/) ) {
      label = 'M';
      if( height >= 400 ) label = 'SD';
      if( height >= 720 ) label = 'HD';
      if( height >= 1400 ) label = '4K';
    }

    Thanks,
    Martin

Viewing 14 replies - 1 through 14 (of 14 total)
Reply To: Quality Switching Naming scheme: does not accept _m



Please Sign in or Register to upload files.

Related Posts

  1. quality switching and mobile versions

    quality switching and mobile versions

  2. Setting Up Video Quality Switching

  3. Need help debugging quality switching

    Need help debugging quality switching

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!