It is legal to use a TikTok viewer if you are using it for your purpose. But, if you intend to use it commercially, you should avoid using it.