如何从Flutter下载Tiktok URL的视频?

发布于 2025-01-28 18:53:06 字数 1667 浏览 6 评论 0 原文

I would like to download video from tiktok url by flutter.
I was able to extract only video url from tiktok video url.
Like this
https://v16-webapp.tiktok.com/16301adb3bdaee90952c0a29ba9aa269/6280a48d/video/tos/alisg/tos-alisg-pve-0037/4513bbabd77948d0ad68ea9154d3c580/?a=1988&br=700&bt=350&cd=0%7C0%7C1%7C0&ch=0&cr=0&cs=0&cv=1&dr=0&ds=3&er=&ft=eXd.6HVJMyq8Zjhdlwe2NZZK2l7Gb&l=202205150054570102440750600FBBD34F&lr=tiktok_m&mime_type=video_mp4&net=0&pl=0&qs=0&rc=M2V2ZjQ6ZnZ3PDMzODgzNEApMzdlOWQ3OTtkNzQ7ZTxkZmdzbTBocjRvYHNgLS1kLy1zczI2YDVeNWFgMWIyLmJjYTI6Yw%3D%3D&vl=&vr=

However, the last of this url is not ".mp4" and I can find only how to download video from ".mp4 link" on the web.
Please teach me how to download video from "not mp4" video link to my iphone by flutter!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

情绪 2025-02-04 18:53:06

“这个答案似乎建议将视频读取到一个字节数组中,然后将这些字节写入存储中的文件。您可以使用首选文件名创建一个文件对象(例如:在代码中,$ filename变为“ test.mp4”)。
VC.一个
5月15日12:26“

这是一个答案!!
谢谢你!

"This Answer seems to suggest reading the video into a bytes Array then write those bytes as a file in storage. You create a File object with your preferred filename (eg: in code the $filename becomes "test.mp4"). –
VC.One
May 15 at 12:26"

This is an Answer!!
Thank you!

夏末染殇 2025-02-04 18:53:06

您可以进行检查元素,然后转到网络选项卡,然后转到媒体选项卡。在此之后,单击Tiktok网站上的视频,其MP4您想要,它将显示在媒体选项卡中。您可以转到将是CDN并从那里下载的URL。

you can do inspect element and then go to network tab and then go to media tab. After that click on the video on tiktok website whose mp4 you want, and it will appear in the media tab . You can go to that url which will be a cdn and download it from there.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文