Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facebook embedded video do not work on HTTP. #1898

Closed
MosheL opened this issue Oct 25, 2016 · 30 comments
Closed

Facebook embedded video do not work on HTTP. #1898

MosheL opened this issue Oct 25, 2016 · 30 comments

Comments

@MosheL
Copy link

MosheL commented Oct 25, 2016

I am trying to use Facebook Embedded, on HTTP website. Its doesn't works and I am reciving this error message:

Uncaught SecurityError: Blocked a frame with origin "..." from accessing a frame with origin "https://www.facebook.com". The frame requesting access has a protocol of "http", the frame being accessed has a protocol of "https". Protocols must match.

@rafa8626
Copy link
Contributor

Can you provide a URL or the iframw code to check how you are setting it up? You are testing this on the 3.x-dev branch?

@rafa8626
Copy link
Contributor

The issue is because you are using a URL that starts with https; change it to http and that might solve it

@MosheL
Copy link
Author

MosheL commented Oct 25, 2016

tried with HTTP

    <video width="640" height="360" class="mejs-player" id="player1" preload="none" controls>
        <source src="http://www.facebook.com/johndyer/videos/10107816243681884/" >
    </video>

did not solve.

@MosheL
Copy link
Author

MosheL commented Oct 25, 2016

@Ron666 I can send a link but not on public

@rafa8626
Copy link
Contributor

Sure send it to my email; you will find it on my profile

@rafa8626
Copy link
Contributor

@MosheL It should be fixed now; in the test file, the renderer was missing. Please let me know if that worked. Thanks

@rafa8626
Copy link
Contributor

Can this ticket be closed?

@MosheL
Copy link
Author

MosheL commented Oct 25, 2016

need to check it. thanks

@MosheL
Copy link
Author

MosheL commented Oct 25, 2016

Update: I was re-downloaded the test file.
It works, but the Facebook Play/Stop/Progress toolbar is visible and make things ugly.

@rafa8626
Copy link
Contributor

Unfortunately, this is a limitation on Facebook embed (as well as Vimeo) so nothing we can do about it

@MosheL
Copy link
Author

MosheL commented Oct 25, 2016

If this is correct, we must disable the ME toolbar on this case.

@rafa8626
Copy link
Contributor

@MosheL After some research I was able to achieve the hiding of controls; please download the latest version of 3.x-dev branch and let me know. Thanks

@MosheL
Copy link
Author

MosheL commented Oct 25, 2016

  1. Thanks !
  2. still not resizable on build. on the origin size it works OK.

@rafa8626
Copy link
Contributor

Thanks. I'll check this and keep you posted ASAP about the fix

@rafa8626
Copy link
Contributor

@MosheL Please download and test this again; I found some issues and took me some time to figure out why fullscreen was not behaving as it should with the full player

@rafa8626 rafa8626 reopened this Oct 26, 2016
@MosheL
Copy link
Author

MosheL commented Oct 26, 2016

  1. Thanks.
  2. It did not work while clicking on progress bar. if FB can't support this we can just hide it.

@MosheL
Copy link
Author

MosheL commented Oct 26, 2016

Update: other tools on toolbar did not work, and also Play after video ended.

@rafa8626
Copy link
Contributor

Yeah Facebook videos are not as mature as the other renderers and are very limited with the features we offer related to time wise; for now just remove any features that don't work and I'll check the play issue. That will be the last thing I can do in the Facebook side. Thanks

@rafa8626
Copy link
Contributor

@MosheL Fixed the issue with Play with video ended. Facebook right now doesn't account for a timeupdate event, making some of the features unusable. Please test and let me know. Thanks

@rafa8626
Copy link
Contributor

@MosheL Update: I was able to make the progress bar click to work. Also, most of the features related to time must be working right now; please confirm and let me know

@MosheL
Copy link
Author

MosheL commented Oct 26, 2016

Update: FB is working. I can skip the timeupdate and similar.

https://www.facebook.com/VirallUSA/videos/vb.201208910316415/204884829948823/
this is live. facebook live is in 1x1 and not in 16x9, so the Iframe changed size and overflowed.

image

@rafa8626
Copy link
Contributor

I'll test setting dimensions for live videos I never considered that. Thanks for pointing this out

@MosheL
Copy link
Author

MosheL commented Oct 26, 2016

update:

.mejs-mediaelement {overflow: hidden}
also, the Play event did not fired and the picture (mejs-poster-img) did not removed on this case. I can remove it manualy.

@rafa8626
Copy link
Contributor

I'll give you an update soon. That link is still active?

@rafa8626
Copy link
Contributor

I just used https://www.facebook.com/MdRaqibulHasanRana/videos/1121837361186419/ and no issues. The only thing I noticed is volume but I'm checking that right now. The link you posted is not active and that might be causing the issues you are seeing

@rafa8626
Copy link
Contributor

rafa8626 commented Oct 26, 2016

@MosheL I haven't found any information in regards of live videos and how to interact with them. Seems that is very limited now. I'll continue searching but as it is right now, Facebook renderer is very stable. Feel free to close this ticket if you consider it. Thanks

@MosheL
Copy link
Author

MosheL commented Oct 26, 2016

The problem is the live video are closed so I can't add a realable link. also there is a diffrent between RTMP-sourced live stream and phone-sourced live stream.

The live stream you are used is a RTMP-sourced and its 16x9. if you will use a phone and start broadcasting (like this ugly test: https://www.facebook.com/admini/videos/10154655923894932/?pnref=story ) you will get a diffrent ratio.

@rafa8626
Copy link
Contributor

For now there's a lack of documentation as you know so there's no much we can do at this stage. As soon as updates come to the Facebook videos we'll integrate them or simply use the iframe

@MosheL
Copy link
Author

MosheL commented Oct 26, 2016

so close this and reopen a new one about the live problem?

@rafa8626
Copy link
Contributor

Yeah that's fine. Thanks

@MosheL MosheL closed this as completed Oct 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants