-
Hi.
Does FV Player Pro plays well with WordPress REST API ?
Thanks
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
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