-
Hi.
Does FV Player Pro plays well with WordPress REST API ?
Thanks
Foliovision › Forums › FV Player › How to … › Using FV Player Pro With WP REST API
Hello adv,
FV Player outputs using a standard WordPress shortcode, so it should work.
Are you interested in showing the player using REST API in a mobile app? In that case you will have to also include the FV Player scripts as just showing the HTML coming out of the shortcode won’t be enough.
Thanks,
Martin
Are you interested in showing the player using REST API in a mobile app?
.
Yes.
In that case you will have to also include the FV Player scripts as just showing the HTML coming out of the shortcode won’t be enough
I am aware that i need to insert player code.
Any example raw “HTML coming out of the shortcode ” would be ?
Thank you.
Hello adv,
that HTML coming out of the shortcode is the div.flowplayer element, optionally also with the playlist.
If your mobile app allows you to run JavaScript and you can include all the FV Player scripts in it, it should load just fine.
Just check any page with FV Player (without any cache or JS/CSS optimization) and you should see the scripts and styles to load:
<link rel='stylesheet' id='fv_flowplayer-css' href='https://your-site.com/wp-content/fv-flowplayer-custom/style-1.css?ver=1641491548' type='text/css' media='all' /> <script type='text/javascript'> /* <![CDATA[ */ var fv_flowplayer_conf = {"fv_fullscreen":"1", ...}; var fv_player = {"ajaxurl":"https:\/\/your-site.com\/wp-admin\/admin-ajax.php"}; var fv_flowplayer_translations = {"0":"","1":"Video loading aborted", ...}; var fv_flowplayer_playlists = []; /* ]]> */ </script> <script type='text/javascript' src='https://your-site.com/wp-content/plugins/fv-wordpress-flowplayer/flowplayer/modules/flowplayer.min.js?ver=7.5.14.727'></script> <script type='text/javascript' src='https://your-site.com/wp-content/plugins/fv-wordpress-flowplayer/flowplayer/fv-player.min.js?ver=7.5.14.727'></script>
If you are also using FV Player Pro with YouTube or MPEG-DASH streams, then there is more.
Thanks,
Martin
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.
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.
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!
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!