Code Monkey home page Code Monkey logo

Comments (3)

Kikobeats avatar Kikobeats commented on July 19, 2024 1

Added Twitter demo (thanks @breadadams!)

I think we can ship an API field with the iframe ready to be embed.

For example, this could be the API payload from a target Youtube video

// 20180303170707
// http://localhost:3000/?url=https://www.youtube.com/watch?v=hwMkbaS_M_c

{
  "status": "success",
  "data": {
    "lang": null,
    "author": "ONE Media",
    "title": "Star Wars 8 THE LAST JEDI Official TRAILER (2017) Daisy Ridley, Disney Movie HD",
    "publisher": "YouTube",
    "image": {
      "width": 1280,
      "height": 720,
      "type": "jpg",
      "url": "https://img.youtube.com/vi/hwMkbaS_M_c/maxresdefault.jpg"
    },
    "embed": "<iframe width='560' height='315' scrolling='no' frameborder='no' src='https://www.youtube-nocookie.com/embed/hwMkbaS_M_c' frameborder='0' allowfullscreen></iframe>",
    "description": "Star Wars 8 THE LAST JEDI Official TRAILER (2017) Daisy Ridley, Disney Movie HD\nĀ© 2017 - Disney",
    "date": "2018-03-02T12:00:00.000Z",
    "video": null,
    "logo": {
      "width": 144,
      "height": 144,
      "type": "png",
      "url": "https://s.ytimg.com/yts/img/favicon_144-vfliLAfaB.png"
    },
    "url": "https://www.youtube.com/watch?v=hwMkbaS_M_c"
  }
}

So we can build the card preview and, after user click, replace the card content with the embed content.

from sdk.

Kikobeats avatar Kikobeats commented on July 19, 2024 1

Hey,

Since Microlink API has audio parameter as well, is a good moment to start moving this forward!

I don't have an estimation, but my original idea is first to implement this on API level, then use the SDK to retrieve the new embed field.

In the middle time, you can use one of the libraries we suggest at first comment ā€“ the problem with this approach is it will going to add more code in your client side.

Please subscribe this issue, it will be updated ASAP

from sdk.

deikka avatar deikka commented on July 19, 2024

Hi! Do you have any update on this? Is going to be a feature soon? Thanks!

from sdk.

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.