Fix: Add share URLs to TikTok pattern matching#1973
Conversation
|
Would be better to support tiktok player urls as well |
@Ritik-gh It seems that the iframe embed does not support that URL from what I have found. For what its worth, it might be easier to transform that locally to /share/video/:video_id . If you have an example of it working I can update both PR's |
|
@AshesOfOwls , it works, you can check this - https://developers.tiktok.com/doc/embed-player |
|
@Ritik-gh Perfect, thanks! I will go back and see what else was wrong to make it fail :) |
|
Cool |
|
@Ritik-gh Updated, thanks for the suggestion. |
|
Awesome! |
This is a PR which should depend upon muxinc/media-elements#150 merging.
If there are any updates to the regex in that PR then this should also be updated.
TikTok supports two versions of URL's:
https://www.tiktok.com/@_luwes/video/7527476667770522893
and
https://www.tiktok.com/share/video/7527476667770522893
The second format redirects to the first format, but is still accessible as an embed src. This is useful since TikTok users may change usernames.