Having captured the gaze of hundreds of millions of people with its short-video platform TikTok, parent company ByteDance Ltd. is now the focus of attention as it struggles to commercialize the app and finally turn a profit amid tightened regulations and rising U.S.-China tensions.