• 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

Problems with custom script

[Solved]

Foliovision › Forums › FV Player › How to … › Problems with custom script

  • Wendy 11 years, 9 months ago

    Hi Martin,

    With the older version of the player I have functionality working that you can click on preview for any film in the film list, and it plays that film.

    Unfortunately this doesn’t work with the newer player.

    I’m using code like this:
    echo do_shortcode(“[fvplayer src=$vid_src autoplay=true]“); (it was
    flowplayer, not fvplayer in this version, but I tried substituting
    that, and it didn’t work.)

    And it seems like clips play at the wrong size or won’t play at all.
    The play arrow remains on the screen the whole time and I can’t
    control the video. I know this is a custom thingy, but it’s
    frustrating that it was so solid before.

    Can you tell me if the FV version that’s working on that site will
    work with the latest version of WordPress? I always want to go with
    the latest versions, but I’m running out of time.

    Thanks,
    Wendy

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

    Hello Wendy,

    if you can provide at least a HTML sample of the site (copy the HTML source from the browser and save it as a text file, then send to our email), then we can have a look if it’s some generic issue.

    If it’s some problem specific to your site, we can fix the problem for you, just order our pro support.

    If it’s a complete custom script which you need for the site, then that’s completely different story. We will be adding a playlist feature into our plugin, perhaps that could help you. Also, here’s a programmer’s guide for our plugin, so you can check how to initialize our player using JavaScript: http://foliovision.com/wordpress/plugins/fv-wordpress-flowplayer/api-programming

    Thanks,
    Martin

    Wendy 12 years ago

    Hi Martin,

    I think it is generic, because the same shortcode call produces different results in different versions.

    I’m including html (attached, from view source) from the working version, which has been stable for over a year and from the non working version (dev site with new versions of plugin/wp) and one txt file with just the relevant part pulled out. I would look at that one first, much less to look at!

    I did take a look at the api-programming link, and I had some questions about the fv_flowplayer_attributes call. Do you have a full list of attributes? Can you show an example with syntax here? “first parameter is an array of all the player DIV element attributes, second is the video URL.” I’m only seeing the “most important attributes” in the documentation, would like to see all possible attributes.

    To be clear, this is only affected with the autoplay call. I’m not seeing autoplay documentation for one video anymore, can you point me to instructions for setting that in on a per call basis, rather than globally? I want to make sure that nothing else changed there. It seems like some sort of timing issue, when the video is played via “autoplay” the play arrow doesn’t disappear, and I can’t control stop, etc.

    Thanks!
    Wendy

    Martin 12 years ago

    Hello Wendy,

    thank you for the attached HTML.

    What you do is that you grab the player HTML and then move it around (see //cdn.foliovision.com/global/film-anchors.js).

    This was probably working with Flowplayer version 3 (included in FV Flowplayer up to 1.2.17), but not in Flowplayer version 5, as that one uses HTML5 – it’s an integral part of the HTML document and you can’t just move the HTML around – as it’s not just HTML, but also associated events etc.

    So to make sure it works and that it works with all the devices, you have to use the proper API calls.

    I added “Quick JavaScript samples” into the programming guide: http://foliovision.com/wordpress/plugins/fv-wordpress-flowplayer/api-programming Obviously it’s not your definitive solution, but it should give you some start.

    Thanks,
    Martin

    Wendy 12 years ago

    Hi Martin,

    This is really helpful. Can I specify “autoplay” in the last example on the page, within the playlist (Player initialization via JavaScript)? My eyes are swimming with the flowplayer documentation!

    Martin 12 years ago

    Hello Wendy,

    sorry about the delay, you can just pick the same element, call Flowplayer on it and the the play() method. Like this:

    jQuery('#your-element').flowplayer().play();

    Thanks,
    Martin

    Wendy 11 years ago

    Hi Martin,

    this was working with earlier versions of the plugin, but not anymore.

    Can you tell me where the fv version list is again? I’d like to download an older version and see if it’s working there. Or if you have any ideas, that’d be great, the functionality here had been stable for so many versions of the plugin, I wasn’t checking as well as I could have been.

    Thanks,
    Wendy

    Martin 11 years ago

    Hello Wendy,

    the FV Flowplayer JS now loads in the site footer as 99% of websites benefit from that. This change was mentioned in change log, but next time we will put up a better warning for admins.

    Can you make sure your script gets loaded in the wp_footer action hook or simply in footer.php file below wp_footer()? You can get the idea by reading the following: http://foliovision.com/wordpress/plugins/fv-wordpress-flowplayer/api-programming#how-to

    Thanks,
    Martin

    Wendy 11 years ago

    Hi Martin,
    My script is loaded last, after the fv-flowplayer call. I always load my stuff last. It’s still functional, except that it doesn’t seem to know about the play-button class anymore, isn’t writing the play-button, when it was very recently. Here’s what I’m doing, in html:
    <div id=”film-player” class=”flowplayer play-button is-splash” style=”background:#777 url(<?php echo $splash ?>) no-repeat;”>
    It’s writing the player div without the play-button, that’s my issue. I think it’s more of a style issue than a script issue.
    Thanks,
    Wendy

    Martin 11 years ago

    Hello Wendy,

    I had a look and you are actually trying to init the player by inline JavaScript. Using inline JavaScript slows down your site and makes it hard to use minify.

    If you fix your issue with that script, it will show the play button just fine. If you order our pro support, we will be happy to provide more help right on the site, or perhaps incorporate a “compatibility” setting for FV Flowplayer where it would load in header.

    Thanks,
    Martin

    Wendy 11 years ago

    Hi Martin,

    I’m actually loading an external script. Can you tell me what the handle of your script is so I can list it as a dependency?

    Thanks,
    Wendy

    Martin 11 years ago

    Hello Wendy,

    the WP script handle for our script is simply “flowplayer”.

    Thanks,
    Martin

    leonidas 11 years ago

    Hi Martin,

    We are testing this excellent wordpress plugin, but we want to work for audio, accompanied by an image, while playing the stream and between advertising in the same way.

    There is a right way to do it?

    We’re integrating with REVIVE OPEN adserver.

    Thanks for your great support.

Viewing 12 replies - 1 through 12 (of 12 total)
Reply To: Problems with custom script



Please Sign in or Register to upload files.

Related Posts

  1. Top Level Categories plugin and problems with WordPress 3.1

    Top Level Categories plugin and problems with WordPress 3.1

  2. Custom start and end time

  3. FV Pro SupportWe’ll solve your WP Video problems right now

    FV Pro Support
    We’ll solve your WP Video problems right now

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!