GithubHelp home page GithubHelp logo

request ssl player info about iframely HOT 5 CLOSED

joelabair avatar joelabair commented on July 23, 2024
request ssl player info

from iframely.

Comments (5)

iparamonau avatar iparamonau commented on July 23, 2024

There is no option to request only ssl players. Iframely will return everything it got and you'll need to filter out.

With domain plugins, we try to output // where both http and https are available. If it's https only, it'll start with https://.

The generic parsers, backed by our whitelist file (where we manually QA domains), will also have ssl in rels array to confirm that this is the site has valid ssl certificate.

from iframely.

joelabair avatar joelabair commented on July 23, 2024

Awesome, thanks for the quick info!

from iframely.

iparamonau avatar iparamonau commented on July 23, 2024

Actually, another thought. If you'd be using iframely.js client wrapper, there are helper methods to filter links out there. You may take a look how we filter https ourselves in Iframely for Gmail Chrome ext.

var player = $.iframely.filterLinksByRel(["player"], data.links, {httpsOnly: true, returnOne: true});

I'll keep this ticket open for now. We are refactoring our core in refactor branch, and were thinking about requesting specific infos. Perhaps, we'd have good ideas on how to fit it in.

from iframely.

joelabair avatar joelabair commented on July 23, 2024

Ahh cool. I believe I can work with that.

In our use case, we rely heavily on chrome users in our app. We're https only, and display user curated content. As mixed content is prohibited from SSL pages, we need to limit embeds accordingly.

Yahoo video - specifically, returns only http embeds. Confirmed this with the yahoo/oembed endpoint as well. The same yahoo embed URLs are available over both http and https, but the response is always an http embed resource. Leaving it up to the consumer to assume https compatibility and switch, I guess.

Perhaps this is intended.

Working with oembed providers, I noticed that a few (google, watsia) take an ssl boolean parameter and respond accordingly. It would be useful to support this in the iframely endpoint. As not all use cases are jQuery / browser.

from iframely.

iparamonau avatar iparamonau commented on July 23, 2024

I will close this ticket here. API can't really do more than described above, and filtering links in response is still relevant.

However, we also ended up publishing support of hosted widgets in iframe.ly cloud recently. It takes care of SSL fallbacks, among others and is long waited response to this ticket too.

from iframely.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.