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

Expose other media types like MP4 #39

Open
matthewlewandowski93 opened this issue Nov 4, 2024 · 1 comment
Open

Expose other media types like MP4 #39

matthewlewandowski93 opened this issue Nov 4, 2024 · 1 comment

Comments

@matthewlewandowski93
Copy link

The Tenor API returns other media types besides GIF. It would be great if the TenorImage object returned a media object with all of the potential types, instead of picking out the gif and returning it.

const preview = img['media_formats']['tinygif'];
const gif = img['media_formats']['gif'];

const media = img['media_formats'];

For reference: https://developers.google.com/tenor/guides/response-objects-and-errors#content-formats

My application uses a lot of gifs on one page, and it's significantly more performant to use MP4s when they are available. It also loads a lot faster.

@matthewlewandowski93
Copy link
Author

Looks like this request is related: #38

I've just realized that you are including the gif and tiny gif in the parameters. It would be amazing if these were configurable. You could specify which files you want in the media object.

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

1 participant