Foliovision › Forums › FV Player › How to … › How to setup iframe usage
-
Hello,
I am having a problem with making iframes work correctly.
When iframe embeding is turned on it generates the path to the src in the iframe pointing to the path of the original post + /fvp . Example:
post path: http://www.domainname.com/2016/02/nameofpost
iframe src path: http://www.domainname.com/2016/02/nameofpost/fvpThis generates an error page in the iframe every time, as the page it is pointing to does not exists and also in the iframe I am seeing the whole page not just the video segment which I want to display.
Please advice how to setup this correctly, the instructions I found here and there are quite few and not clear enough.
Thank you in advance.
-
-
Hello,
Yes sure, here is a sandbox domain I am doing most of my testing:
http://www.4u2rate.com/There are 2 posts :
Example Video – just test video made using only the below code:
[fvplayer src="http://www.4u2rate.com/wp-content/uploads/2016/12/The_Hanging_Tree_Hunger_Games_Peter_Hollens-1.mp4" width="1280" height="720" align="left" controlbar="yes" embed="true"]iframe Embed – this is a post done using the iframe embed code from the 1st post:
<iframe src=”http://www.4u2rate.com/?p=59/fvp/” allowfullscreen style=”width:1280px;height:722px;border:none;max-width:100%”></iframe>you can see how the iframe actually shows the 1st post page inside the send one :) Maybe I am doing something wrong here or is this some sort of a bug ?
Thank you in advance for your time and help on the matter.BR
SveHello Sve,
the iframe embedding works like you described, with all the settings being applied to the video.
I see that it won’t open at all: http://www.4u2rate.com/2016/12/18/59/fvp/
Could you please try to visit wp-admin -> Settings -> Permalinks? Doing that will refresh the rewrite rules and perhaps it will start working.
If not, please try to disable all the other plugins and then visit Settings -> Permalinks again. Will that help?
If you need this issue resolved by our team quickly, we will be happy to get it fixed right on your site if your order our Pro support: http://foliovision.com/pro-support
Thanks,
MartinHello,
Indeed the permalinks were the issue, but I am managing to get it to work properly only when the format of the permalinks is plain : http://www.4u2rate.com/?p=123
In that case the embed link path goes to : http://www.4u2rate.com/?p=76&fv_player_embed=1
and it works in this case.However, switching to another set of permalinks gives me the original issue again. The only problem with using plain permalinks is that it is not SEO friendly, so any other suggestions i could try ?
Thank you in advance.
Hello Sve,
so just visiting wp-admin -> Settings -> Permalinks doesn’t fix the issue, is that right?
Have you tried to disable the other plugins?
Are you using any plugin for object caching (typically W3 Total Cache) or does your host support it (APC/memcache)?
Are you able to check the rewrite_rules in wp_options table and see if there is any occurence of the “fvp” string in it? Are you doing something to remove rewrite rules for “/trackback/” from there?
If you know PHP, you can debug this in flowplayer::rewrite_embed() in models/flowplayer.php.
Thanks,
MartinHi Martin,
Yes just visiting and refreshing the permalinks is not working. It only works when the permalinks are in plain mode and that is it.
Testing is done with all plugins disabled and there is no cashing enabled, also this was tested on 2 different hosting providers.
There is nothing else special done on this domain setup, I can do another fresh install and test again. Are you able to have the player working with other permalinks setup other than plain on your side?
On my side every other permalink setup just adds a “fvp” at the end of the link and generates a none existing page, only in plain mode I see it is generating properly : &fv_player_embed=1 at the end of the link.
In options table looking for mentioning of fvp I can see only this :
1948 widget_widget_fvplayer a:1:{s:12:”_multiwidget”;i:1;} yesNot sure I have enough knowledge to debug this by myself, but I can try.
I see in the plugin description page you have this text:
“If you want to embed videos denoted just by their filename, you can create the /videos/ directory located directly in the root of your domain and place your videos there(you use complete URL of video files).”I am uploading the video files via the media library directly from the post, could that be the issue ?
In addition I have tried disabling the iframe functionality and there I can see that things work normally regardless of the permalink structure, just it does not give me what I need to be able to use the adds and redirect with the embed option, which is possible only with iframe.
Thank you.
Hello Sve,
I realized that this might be a problem with WordPress 4.7 and indeed, it’s not working for me on that version. We keep our sites updated to the latest minor release, we are not using 4.7 for all of our sites yet: https://foliovision.com/2016/12/wordpress-improvements
It appears it also stopped working on our sites which use WordPress 4.3 (it’s latest minor version 4.3.6).
This update will released later today in FV Player 6.0.5.14. Thank you for the bug report!
Thanks,
MartinHi Martin,
Thank you for the good news :) I was going crazy with troubleshooting and testing, thinking its something I am doing wrong :) now I can sleep at night and wait for the new version :)
I am happy I was able to help.
Thank you and great work with this plugin indeed one of the best ones ;)
Happy Holidays!
Hi Martin and Happy Holidays :)
Just wanted to get back to you after the updates.
Great work, Indeed in 6.0.5.14 the issue was fixed and things were working as expected, but in 6.0.5.15 I noticed that when using iframe, there is always a blank row below the video, forcing the scroll bar on the right side to appear. At first I thought it was something related ti size of video, scaling etc. , but nothings so far has affected the result and I do not recall this blank row/side scroll bar being present in the testing I did with 6.0.5.14 , I am only assuming there is some blank row somewhere in the code doing this, but can not find it. I might be wrong and this could be coming from something totally different, but so far this is the only things I could think of.
Example here: http://www.4u2rate.com/2017/01/2-iframe/
Could you please check and let me know if this is something present on your environments as well ? I have tested this on several domains and different hosting environments, all plugins disabled, fresh installations of WP – end result was the same in all cases.
Thank you in advance for your time and help on the matter.
Hello Sve,
not sure where this issue is coming from exactly. I was able to trace if down to a change introduced in 6.0.5.13 actually.
So I fixed the code I believe. Could you please reinstall FV Player from https://github.com/foliovision/fv-wordpress-flowplayer/archive/master.zip and let us know if it helped?
Thanks,
MartinHi Martin,
Yes the version from github fixed the extra empty row and no longer forces the scrollbar on the right side to appear :) You can see here:
http://www.4u2rate.com/2017/01/2-iframe/However the sharing icons are not visible now, they are still active if you click on them, but not visible. Not sure, if this is due to the unofficial release I am testing, as on 6.0.5.13, 6.0.5.14, 6.0.5.15 they were visible, meaning this is present only on this test version.
Thank you.
Hello Sve,
I’m not sure what’s wrong, but it says the fils are missing, like this one:
http://www.4u2rate.com/wp-content/plugins/fv-wordpress-flowplayer/css/img/play_white.png
http://www.4u2rate.com/wp-content/plugins/fv-wordpress-flowplayer/css/fonts/fpicons.woff?ver=yg5dv7
http://www.4u2rate.com/wp-content/plugins/fv-wordpress-flowplayer/css/fonts/fpicons.ttf?ver=yg5dv7Could you please reinstall the plugin?
Thanks,
MartinHi Martin,
Sorry for late reply, somehow I missed your message in my inbox :)
Not sure what happened as well [probably faulty install], either way I saw you posted a new version 6.0.5.16. I installed that one and I confirm everything seems to be posting perfectly :) No extra row and icons are visible:
http://www.4u2rate.com/2017/01/2-iframe/Thank you for the support, currently I believe things are perfect :)
BR
Sve