refined-energy-76161
09/16/2025, 9:06 PMtall-airline-16756
09/16/2025, 9:06 PMtall-airline-16756
09/16/2025, 9:07 PMrefined-energy-76161
09/16/2025, 9:07 PMtall-airline-16756
09/16/2025, 9:08 PMtrackRef is defined and subscribed.
• If the track isn’t ready yet, you can show a custom loading UI like a spinner, some text, or even an animation.
• Feel free to style the container so it fits beautifully with your design—think about background colors, layout, and any animations you'd like.
For example, if you're working with React, conditional rendering can do the trick:
const videoTileContent = trackRef ? (
<VideoTrack trackRef={trackRef} className="video" />
) : (
<div className="loading-ui">
<span>Loading video...</span>
</div>
);
If you're using a specific SDK like React Native, Swift, or Flutter, just let me know! I’d love to provide a more tailored example that fits your platform perfectly.
Sources: src/components/playground/Playground.tsx | lib/src/ui/widgets/track/no_track_widget.dart | src/components/VideoTrack.tsx | Sources/LiveKitComponents/UI/TrackPublication/VideoTrackView.swift