amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

amp-video and https

Open gcovato opened this issue 11 years ago • 11 comments

Hi to all,

It is becoming a big issue for us the restriction that was applied on the urls of the video files supported by amp-video.

We have the majority of our video files on a video server that doesn't support the https urls.

Our plan was to create a amp-html version of all our articles on the server. Your restriction, applied from our point of view suddenly and without a pre clarification on the documentation, is making useless much part of our work.

We would like to ask to remove this restriction. Video files played by this component are files owned by the publishers. Why the component should check the real source using a certificate?

Thank you

Giuseppe

gcovato avatar Sep 22 '15 08:09 gcovato

AMP files are eventually served via HTTPS. All resources that cannot easily be proxied need to be served as HTTPS from the origin.

cramforce avatar Sep 22 '15 08:09 cramforce

It is a constraint that I didn't find in the documentation and I didn't think was planned.

gcovato avatar Sep 22 '15 09:09 gcovato

@gcovato Right, which is why we are doing the preview to find the things that aren't fleshed out yet. Sorry about that!

cramforce avatar Sep 22 '15 09:09 cramforce

Just a note

This point will force us to remove all video content from amp pages unless we find a solution.

As you understand this is not just a clarification but it has a big impact on our development and something should be explained to the publisher.

If you add to this point the fact that you didn't start the collaboration and we cannot develop our components to overcome some restriction, as you understand, we are stuck in the problems. Video component is an example.

gcovato avatar Sep 22 '15 09:09 gcovato

A custom component would still need to access video via HTTPS.

cramforce avatar Sep 22 '15 09:09 cramforce

I have HTTPS support, at least, on brightcove content but it is not supported We developed an AMP component that uses brightcove API via JsonP but we cannot test it

gcovato avatar Sep 22 '15 09:09 gcovato

Note, that AMP component must not reference third party APIs or JSONP. Would need to work similar to the Twitter embed.

On Tue, Sep 22, 2015 at 11:21 AM gcovato [email protected] wrote:

I have HTTPS support, at least, on brightcove content but it is not supported We developed an AMP component that uses brightcove API via JsonP but we cannot test it

— Reply to this email directly or view it on GitHub https://github.com/ampproject/amphtml/issues/260#issuecomment-142224125.

cramforce avatar Sep 22 '15 09:09 cramforce

This is the place where we created our amp component for Brightcove Video.

https://github.com/gcovato/amphtml/tree/master/extensions/amp-bcvideo

gcovato avatar Oct 02 '15 10:10 gcovato

Looks great! Do you have a contact from Brightcove who could help with the review?

We'd need to switch from JSONP to a CORS based API.

On Fri, Oct 2, 2015 at 3:24 AM GiCo [email protected] wrote:

This is the place where we created our amp component for Brightcove Video.

https://github.com/gcovato/amphtml/tree/master/extensions/amp-bcvideo

— Reply to this email directly or view it on GitHub https://github.com/ampproject/amphtml/issues/260#issuecomment-144985674.

cramforce avatar Oct 02 '15 12:10 cramforce

Just stumbled on this-- I work at Brightcove. I'm getting a 404 on @gcovato's example page right now but would be happy to find the right person to review anything if it comes back up.

dmlap avatar Oct 08 '15 05:10 dmlap

@dmlap the repository was private. You should be able to access it now. I opened a support ticket for getting the needed help.

gcovato avatar Oct 08 '15 07:10 gcovato