Giter Site home page Giter Site logo

Comments (9)

denisyilmaz avatar denisyilmaz commented on May 27, 2024 2

For example something like url @transcode(…) would be great.

{
  asset(kind: "video") {
    title
    url @transcoder(width:768 ,videoBitRate:"500k")
  }
}

from craft-transcoder.

khalwat avatar khalwat commented on May 27, 2024 2

@gaelpleeroy I have not done any work on implementing a GraphQL API for the Transcoder plugin. You're the second person who has requested such a feature, though, which adds to its likelihood of being implemented

from craft-transcoder.

benfeather avatar benfeather commented on May 27, 2024 2

I'd really like to see GraphQL support as well.

from craft-transcoder.

denisyilmaz avatar denisyilmaz commented on May 27, 2024

@khalwat I guess this has no priority?

from craft-transcoder.

khalwat avatar khalwat commented on May 27, 2024

It isn't something I'd planned to implement, but if enough people are interested, sure.

Understand if the video is in the middle of transcoding, you'll get nothing back. But I suppose that's not much different than the current Twig API.

from craft-transcoder.

denisyilmaz avatar denisyilmaz commented on May 27, 2024

alright, thanks for that information. then I hope there are people out there requesting this feature as well.

For anyone searching for a temporary solution, I used the Preparse Field Plugin that I added to the asset entry type to trigger the video transcoding. Here is the twig code I used to create a mp4 version of a video:

{% set myAsset = craft.assets().uid(element.uid).one() %}
{% if myAsset.kind == 'video' %}
    {% set mp4 = craft.transcoder.getVideoUrl(myAsset, {
        "width": "",
        "height": "",
    }) %}
    {{ { 'mp4': mp4 } | json_encode }}
{% endif %}

@khalwat are there events I could listen to inside a custom module to trigger a resave of that field when the transcoding is finished? Could not find anything in the documentation

from craft-transcoder.

gaelpleeroy avatar gaelpleeroy commented on May 27, 2024

Hello @khalwat any news on that? We got some self-hosted video assets and it seems this is the only plugin available.
Also is there a roadmap?

from craft-transcoder.

denisyilmaz avatar denisyilmaz commented on May 27, 2024

hi @khalwat , any plans to get this feature implemented in the near future?

from craft-transcoder.

khalwat avatar khalwat commented on May 27, 2024

It's on the list, but not immediately unfortunately.

from craft-transcoder.

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.