I'd like to install a post button on the site on Twitter, but I'd like to embed a video into the tweet.I would like to embed the video itself and post it instead of the twitter card.
I would like the video itself to be posted by the user, not on the server.
If you know how to do it, please let me know.
You can upload media objects such as images, videos, and GIF animations by using the media/upload
endpoint of the Twitter API.
media/upload
To upload a video using an endpoint, follow these steps:
More information about this endpoint is found in the Twitter document, so you should read it once.Also, a sample code for uploading asynchronously large media files exists in GitHub, which may help you write code.
Note:
567 Who developed the "avformat-59.dll" that comes with FFmpeg?
886 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
567 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
599 GDB gets version error when attempting to debug with the Presense SDK (IDE)
© 2024 OneMinuteCode. All rights reserved.