Bug 243912

Summary: Certain TikTok sound previews are broken
Product: WebKit Reporter: Youssef Soliman <y_soliman>
Component: MediaAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: jer.noble, saaa122e, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Youssef Soliman
Reported 2022-08-12 18:31:45 PDT
Any TikTok sound generated from an originally uploaded video (not submitted as a separate audio) is not handled properly by our media pipeline. The issue arises from TikTok making a request for an `audio/mpeg`, while the server responds back with a MIME type of `video/mp4` and response body containing an `mp3` file. Downloading the file locally, you can see that renaming the file extension to `mp3` and opening it in Safari will play normally. A fix for this might involve inferring the type separately and falling back to that media type if the initial load is unsuccessful. Example of broken audio Link to sound: https://www.tiktok.com/music/original-sound-7089077221968595755 Direct audio file link: https://v16m.tiktokcdn.com/9b85c36eb6ee5af4270d709d3bc99129/62f7515f/video/tos/maliva/tos-maliva-v-27dcd7c799-us/662ea36d360b41539e8b0fc113ebefc7/
Attachments
Radar WebKit Bug Importer
Comment 1 2022-08-12 18:32:04 PDT
Jer Noble
Comment 2 2022-08-13 11:44:58 PDT
Jer Noble
Comment 3 2022-08-13 11:45:29 PDT
May want to consider suggesting that workaround to TikTok.
Note You need to log in before you can comment on or make changes to this bug.