Fitness & Wellness · November 27, 2026 · Maryna Poplavska

How to Build a Fitness App With Live Classes, an On-Demand Library and Wearables

How to Build a Fitness App With Live Classes, an On-Demand Library and Wearables

By Maryna Poplavska, Lead Project Manager · Last updated 19 November 2026

A fitness streaming app delivers instructor-led workouts live and on demand and, usually, shows each member’s own performance data next to the video. If you are working out how to build a fitness app of this kind, build it as four connected parts: live class delivery, an on-demand library that every recorded class feeds, a data layer that brings in wearables and sensors, and a product layer of scheduling, subscriptions and health-data handling. The first decision, the live class format, sets the architecture for the rest.

This guide is for fitness products where video is the product. A step counter or workout logger with no video is a different build.

Key takeaways

  • The live class format decides the architecture. A one-to-many broadcast, an interactive class where people see and hear each other, and a one-to-one session are three different builds; in our view, many products need two of them.
  • Live and on-demand share a library when every class is recorded; how you record depends on the live format.
  • “Wearable integration” is four integrations: phone health stores, direct Bluetooth and ANT+ sensors, watch apps and cloud APIs, each with its own permissions and limits. Google’s migration guide says the Google Fit APIs are supported only until the end of 2026.
  • Live metrics on live video is a synchronisation problem, not a video problem. Decide early which stream you protect when the network degrades.
  • Fitness data carries legal duties even without HIPAA, including the FTC’s Health Breach Notification Rule.

Not an engineer? Read the parts table, which live class format you need, build, buy or assemble and what we have built; the rest is reference.

What does a fitness streaming app need?

A fitness streaming app has two planes and a product layer across both. The video plane carries live classes and the on-demand library. The data plane brings in wearable and sensor data and turns it into metrics, overlays and leaderboards. The product layer covers scheduling, subscriptions, notifications and health-data handling.

Fitness streaming app architecture: video plane for live classes and library, data plane for metrics, product layer

Each part has one decision that shapes it and one place it tends to break first; that last column is our view, not a vendor benchmark.

Part Job Decision to make Where it breaks first
Live class delivery Put the instructor, and in interactive classes the members, on every screen Broadcast, interactive or one-to-one Room capacity in interactive classes; delay in broadcasts
On-demand library Store, transcode and serve recorded classes Record every class, or curate The content model and filters, not playback
Wearable and sensor ingest Bring heart rate, power and workouts into the app Which of four paths, per data type Permissions, pairing, device fragmentation
Live metrics and leaderboards Show data next to the video, for one member or the class Personal only, or shared with the class Sync with the video when the network degrades
Schedule, booking and reminders Get members into the class on time Time zones, capacity, waitlists Time zones and late joiners
Subscriptions and access control Decide who may join a class or play a recording Store billing or web billing, per format Store rules; entitlement checks at the room and the CDN
Health-data handling and consent Collect only what you may, and protect it Which rules apply (FTC, GDPR, HIPAA) Consent, and sharing with third parties

The generic VOD layers (bitrate ladder, packaging, DRM, CDN, player) are covered in our guide to how to build a video streaming platform; this guide covers what is specific to fitness.

Which live class format do you need: one-to-many, interactive or one-to-one?

Pick the format with two questions. Does the instructor need to see and hear the members, and do members need to see each other? And how many people join one class? The answers set the protocol, the media server and the delay members feel.

Three live class formats: CDN broadcast, interactive class through an SFU, one-to-one session, and a hybrid

The last column is our view, not a vendor benchmark. The protocol mechanics behind this mapping are in our reference on WebRTC vs HLS vs SRT vs RTMP.

Format Who it is for Delivery path What it costs you in engineering
Broadcast: one instructor, many viewers, chat Large classes where members watch and follow HLS or LL-HLS through a CDN; delay in seconds Scales by adding cache, not rooms; chat runs beside the video
Interactive class: instructor and members on camera Small-group training, competitive rides, form correction WebRTC through an SFU (selective forwarding unit); sub-second Every member is a live stream the server forwards; capacity planned per room
One-to-one: personal training, physio Paid sessions with one coach WebRTC peer-to-peer, or a two-person SFU room Consent and recording rules matter most; payment rules differ (see below)
Hybrid: a front row on camera, a larger audience watching Flagship classes Both paths from one instructor Two pipelines to run; a pattern, not a default

For tolerable delay, see which latency tier your product needs. If the instructor publishes from a studio encoder into a WebRTC server, WHIP gives you standard ingest for WebRTC. For a mostly broadcast product, delivery works like any live streaming app.

How many people can one interactive class hold?

There is no single number. It depends on the media server’s topology, how many video tiles each member’s device decodes and draws, and each member’s bandwidth. In our view, the useful planning question is how many people each member must see: the instructor and a few neighbours, or a grid of everyone.

On Pain Cave Live, the indoor-cycling platform we built, group rides run on the Janus WebRTC Gateway in SFU mode, routing each rider’s video “to every other participant without transcoding”. Load-test with real devices on home networks before you promise a class size.

When does a broadcast beat an interactive class?

When the audience is large, watches rather than performs, and accepts a few seconds of delay, and when cost per viewer matters. Interactive wins when the instructor must see the room to correct form, or when members talk, cheer or compete in real time. Our education webinar platform sits between the two: Jitsi Meet with “hundreds of concurrent viewers per session”, plus chat, Q&A and polls.

How do you turn live classes into an on-demand library?

Record every class into storage, transcode it into an adaptive-bitrate ladder, package it for HLS, and publish it as a library item. Ladders, packaging and CDN design are in our video streaming platform guide.

How you record depends on the format. In our view, a broadcast can often reuse its live HLS segments, but only if the origin or recording pipeline keeps them beyond the live window. A sliding playlist and short-lived segments are not, by themselves, an archive: configure durable storage and a VOD playlist or packaging step. An interactive class is different. The SFU forwards live streams and hands you no file, so recording is a separate component, per track or as a composed layout; on our webinar platform it is a presenter control (“recording triggers”). Record the metrics too: on Pain Cave Live, ride recording meant “capturing full performance data for review”. Bullpit (“stream recording for on-demand replay”) and a corporate LMS (“session recording attached to the module as on-demand content”) use the same step.

In our view, the recording choice is also a privacy and lawful-basis decision. Under the GDPR, identifiable images and voices are personal data. Tell participants what is recorded, why, who can access it and how long it is kept, and identify a lawful basis. Consent is not the only possible basis; if you rely on it, it must be freely given, specific, informed and withdrawable. Consider recording the instructor alone unless member footage is needed.

Music needs two decisions. First, in our view, the browser’s audio processing suits speech, not music: MDN describes automatic gain control as managing volume “to maintain a steady overall volume level”. For a separately captured music input, turn off autoGainControl and noiseSuppression where the browser and device support them. Treat echoCancellation separately: turning it off on a microphone that also picks up the instructor’s voice can bring back echo. These are capture constraints, so check the track’s actual settings on each browser and device you support. Second, also in our view, music needs rights for both the live class and the replay: check your licences before classes go into the library.

What does a fitness library need that a movie library does not?

Members pick a workout by time, intensity and equipment, not by title. The data model has to carry that.

  • Class: duration, intensity, discipline, equipment, body focus, instructor, language.
  • Program or series: an ordered set of classes over weeks, and the member’s place in it.
  • Member history: what was started, finished and repeated, and the metrics recorded during it.

Filters on these fields are the library’s main interface. In our view, they deserve more design time than the player.

Do you need DRM and offline downloads?

Both are forcing questions with an architecture consequence.

  • DRM. In our view, a library of your own instructors’ classes usually starts with entitlement checks and signed, expiring playback URLs, and adds DRM when a licence or a content partner requires it.
  • Offline downloads. Members train where the signal is poor. Content that plays offline has to carry its entitlement with it. On Pedestal, a music marketplace we built, offline listening runs on “pre-validated access tokens” and “local storage budgeting that warns before filling the device”.

How do wearables and sensors connect to a fitness app?

Through four paths, and in our view most products need two. Phone health stores (HealthKit on Apple devices, Health Connect on Android) hold data other apps and devices wrote. Direct sensors (Bluetooth heart-rate straps, ANT+ and Bluetooth trainers and power meters) stream live readings into your app. A watch app runs your code on the wrist. Cloud APIs bring in data from another company’s platform. Choose per data type: live heart rate in a class and last month’s runs are different integrations.

Four wearable data paths, phone health store, direct sensor, watch app and cloud API, aligned to live video by timestamp

The table compares the four paths as each platform documents them.

Path What you get Permission model Main limit What to check
Phone health store (HealthKit, Health Connect) Workouts, heart rate and steps written by many apps and devices Per data type; granted by the user, revocable at any time History: by default, Health Connect reads data from up to 30 days before the app was first granted permission, unless it holds the history permission Android: a permission check before every read. iOS: denied and granted read access look the same; a limited time window can be detected on iOS 27 and later
Direct sensor (Bluetooth LE, ANT+) Live readings from straps, trainers and power meters during a class Device pairing Fragmentation across manufacturers and firmware Every device on your supported list, on real hardware
Watch app (watchOS, Wear OS) Live workout metrics on the wrist, in your own interface The watch platform’s health permissions Battery: sampling rate drives power use Which workout API matches how long you need data
Cloud API (Google Health API, Strava) History and activities from another platform OAuth, under that platform’s developer agreement What you may display, to whom, and keep The agreement’s display and retention terms

The phone-store, watch and cloud-API parts of this section rest on Apple’s, Google’s and Strava’s documentation, read on 19 November 2026, not on a published integration of ours. The sensor and sync parts draw on our own builds.

How do HealthKit and Health Connect work?

Apple’s HealthKit “provides a central repository for health and fitness data on iPhone and Apple Watch”, which apps read and write with the user’s permission.

Health Connect is the Android equivalent. Google’s getting-started guide says “users can grant or revoke permissions at any time”, so “your app needs to check for permissions every time before using them”. It also says “Health Connect can read data for up to 30 days prior to the time permission was granted”, unless the app requests PERMISSION_READ_HEALTH_DATA_HISTORY.

Two design consequences follow. First, lost permissions look different on each platform. On Android, check permissions before each read. On iOS you cannot check read access: Apple’s authorizationStatus(for:) documentation says “your app cannot determine whether or not a user has granted permission to read data. If you are not given permission, it simply appears as if there is no data of the requested type in the HealthKit store.” When a person grants access only to a limited time window, iOS 27 and later let the app find the earliest readable date with getEarliestAuthorizedSampleDate(for:completion:); Apple says to “Treat all data before that date as unknown — not an absence of data”. So design an empty state that says the app may have no data or may lack read access, and tells members how to review permissions in the Health app. Second, onboarding has to explain why you ask for history: on Android, the 30-day window decides what a new member sees on day one.

What replaces the Google Fit APIs?

As of 19 November 2026, Google’s migration guide (last updated 10 September 2026) says: “The Google Fit APIs will be supported until the end of 2026.” Its recommended paths are Health Connect for step tracking and mobile-first apps, the Google Health API for cloud-based integrations (also the recommended path from the Fitbit Web API), and Health Services for the Fit API on Wear OS. For Bluetooth hardware it says “Use the Android Bluetooth APIs directly to communicate with hardware”.

In our view, if your Android app still reads Google Fit, that migration is the most time-sensitive item in this guide.

How do heart-rate straps, trainers and ANT+ sensors fit?

Many Bluetooth Low Energy fitness sensors expose standard GATT services. The Bluetooth SIG’s Heart Rate Service 1.0 “exposes heart rate and other data from a Heart Rate Sensor intended for fitness applications.” For trainers, bikes and treadmills, the Fitness Machine Service 1.0.1 “exposes training-related data in the sports and fitness environment, which allows a Server (e.g., a fitness machine) to send training-related data to a Client.” Trainers and power meters may also connect over ANT+.

On Pain Cave Live, power meters, smart trainers and heart-rate monitors connected over ANT+ and Bluetooth into a pipeline “ingesting power, cadence, and heart rate data from connected sensors”. The case study names the hard part, “Device and sensor fragmentation” across “many manufacturers and firmware versions”, but not the radio path from sensor to app. In our view, the supported-device list is a product decision with a test bench behind it: buy the devices your members own and test them on every release.

What changes when the app runs on a watch?

On Wear OS, Google’s Health Services offers three clients, and the choice turns on how long you need data: MeasureClient is “suited for short-lived experiences”, PassiveMonitoringClient for “long-lived experiences where data updates are relatively infrequent”. In our reading, a live class maps to ExerciseClient, which “can manage a user’s workout, set exercise goals, and listen for updates about the current exercise state”. On Apple Watch, HealthKit’s workout sessions do that job: while a session is active, Apple says, “your app can continue to run in the background”.

The wrist is also a design problem. Our GridSync article describes Wear OS apps that put an American football play on up to fifteen players’ watches with no internet, on a watch that “reconnects within a couple of seconds”. It is a play-calling system, not a health-data app: proof of wrist design and offline device messaging, not of sensor access.

What about Strava and other cloud APIs?

Treat them as terms-of-access risk, not a feature list. The summary at the top of Strava’s API Agreement (effective 1 June 2026) says: “Strava Data provided by a specific user can only be displayed or disclosed in your Developer Application to that user.” In our reading, that rules out showing a member’s Strava history to other members. In our view, class leaderboards run on live sensor data, not Strava, so the usual integration is importing a member’s own history for that member. Have counsel read the full agreement.

How do you keep live metrics and video in sync?

Showing a member’s power or heart rate on top of live video is a timing problem. Video arrives through the media server with one delay; sensor readings arrive over a separate channel with another. On Pain Cave Live that channel was WebSocket, running “alongside the media streams”. The case study says: “WebRTC handles media transport, but synchronizing performance metrics with video frames is a separate problem.” The team built “a dedicated timestamp-alignment pipeline that tags incoming sensor data with media timeline references”, so a rider’s power spike reaches the leaderboard and the coaching overlay at the moment it shows on screen. The case study states the result as “Sub-second sync”: “Metrics and video aligned across all participants in real time”. It publishes no measurement.

In our view, the mechanism is the part to copy. Each viewer’s video runs at its own delay, so align metrics to the video’s own timestamps, not to the wall-clock time they arrive; in an HLS broadcast, where viewers sit seconds apart, that means carrying the data as timed metadata in the stream.

The second choice was what to protect when a rider’s network degrades. The adaptive-bitrate logic was designed “to prioritize metrics accuracy over video resolution”, “so riders on poor connections still competed fairly.” That was our choice for a competitive ride, not a general rule. In our view, the lesson is to decide early which stream is the product: in a race it is the numbers; in a yoga class, the instructor’s picture.

If you are deciding how live video and sensor data stay in sync in your own app, that is the work our fitness app team does.

How do scheduling, subscriptions and access control shape the build?

In our view, four product needs shape a fitness build most: a scheduled class, a subscription tier, a per-class ticket and a studio or corporate account. Each reduces to one architecture hook.

Product need Architecture hook
Scheduled live class A class record with time zone, capacity and waitlist; reminders; a room created or an ingest key issued at start time
Subscription tiers An entitlement check at join time that gates the live room, and signed playback URLs for the library and downloads
Per-class tickets or packs A purchase record mapped to one room or one recording
Studio or corporate accounts Tenancy in the entitlement model: whose members, whose instructors, whose branding

How you may charge inside a mobile app depends on the class format. Apple’s App Store Review Guidelines (3.1.1) require in-app purchase to unlock content such as “subscriptions” or “access to premium content”. Guideline 3.1.3(d) carves out “real-time person-to-person services between two individuals (for example tutoring students, medical consultations, real estate tours, or fitness training)”, where “you may use purchase methods other than in-app purchase to collect those payments”, and adds: “One-to-few and one-to-many real-time services must use in-app purchase.” So a one-to-one training session and a group class can fall under different payment rules. Apple does not define “one-to-few”, so ask Apple how it treats a small-group class before you build checkout around it, and read the current text per market: some rules differ for the United States storefront.

On Android, Google Play’s Payments policy requires apps that sell in-app digital features and subscriptions to use Google Play’s billing system “unless Section 3, 8, or 9 applies”. Section 3 excludes physical services, and its examples include “gym memberships”; Sections 8 and 9 cover alternative-billing programs in eligible countries or regions. Google’s Payments policy FAQ adds a narrow exception for 1:1 online paid services: the service must be “between two individuals” and “not available for replay afterwards”, and its examples include “personal trainer sessions”. That is not a blanket exemption for remote coaching: recording, replay, subscriptions and group classes change the analysis. In our reading, a class in a physical studio is a physical service and a streamed group class a digital one. Check the exact product and the current policy before you build checkout.

What data rules apply to a fitness app?

In our view, HIPAA usually does not apply to a consumer fitness app, but other rules do. The FTC’s guidance on its Health Breach Notification Rule says “You’re not a vendor of personal health records if you’re covered by HIPAA.” Outside HIPAA, the page answers the question a fitness-app maker would ask. For an app where consumers enter their height, weight and age and that “can sync with wearable fitness trackers”, its answer is “You are likely a vendor of personal health records”, because the app “has the technical capacity to draw identifiable health information” from both the consumer and the tracker, “even if some consumers choose to not connect the fitness tracker.”

Three points from the same page matter for design.

  • “A breach is not limited to cybersecurity intrusions.” Unauthorised access, “including sharing of covered information without an individual’s authorization”, triggers notification. In our reading, a third-party analytics or advertising tool built into your app that receives members’ health data without their authorisation can trigger the Rule.
  • Deadlines. Affected people must be notified “without unreasonable delay” and within 60 calendar days after the breach is discovered.
  • Penalties. The page, edited in January 2025 to reflect inflation-adjusted maximums, says businesses “may be subject to a civil penalty of up to $53,088 per violation”; check the FTC’s current inflation-adjusted figure.

Questions to ask your team before launch. Which outside companies receive members’ health or workout data from the app? Does each member agree to each purpose before data is shared? Could you notify affected members within 60 days?

The platforms add their own rules. App Store guideline 5.1.3 says apps “may not use or disclose to third parties” data gathered in the health, fitness and medical-research context, HealthKit included, “for advertising, marketing, or other use-based data mining purposes other than improving health management, or for the purpose of health research, and then only with permission”.

If you serve members in the EU, the GDPR treats “data concerning health” as a special category. Article 9(1) says its processing “shall be prohibited” unless an Article 9(2) exception applies; the first is that the person “has given explicit consent to the processing of those personal data for one or more specified purposes”. Whether a given metric is data concerning health depends on what it reveals and the context. In our view, treat heart-rate and workout profiles as potentially special-category data pending legal review. For each purpose, identify an Article 9(2) condition; if you rely on explicit consent, make it specific to that purpose.

If a covered entity, such as a healthcare provider, engages the app company to create, receive, maintain or transmit protected health information on its behalf, the company may be a HIPAA business associate and need a business associate agreement and safeguards. In our reading, adding clinicians or selling direct to consumers does not, by itself, make an app HIPAA-covered; the parties’ roles and data flows decide. That is a different build, covered in our HIPAA-compliant telemedicine architecture blueprint. None of this is legal advice; check with counsel.

Should you build, buy or assemble each part?

Most fitness products mix three postures, part by part. The table is our view, not a vendor rule.

Part Usual posture What tips it
Live classes and recording Buy a managed video API, or assemble on an SFU you operate Class format, layout control, sensor data beside the video, who runs the media server
On-demand library Assemble from cloud media services Library size, DRM, offline downloads
Sensor and wearable data Build Which paths, which devices, sync with the video
Watch apps Build watchOS, Wear OS or both; battery budget
Billing and entitlement Buy billing; build entitlement Store rules per format, tenancy

A managed video API is a fast way to launch live classes; you inherit its limits on layout, recording and sensor sync. Your own SFU gives you control of recording and of the data path beside the video, and hands you the on-call rotation. We know of no off-the-shelf data layer shaped to your metrics, so it is usually built. Our build-vs-buy guide for real-time video goes deeper on the video side.

What to launch first. In our view, start with one class format on one platform, build the library from that format’s recordings next, and add wearables once your device list is proven on real hardware. If the draw is training together, as in a competitive ride, the live room and its sensor data are that first format, not a later add-on.

If you would rather hire a team than assemble one, see how we build fitness apps.

What has Trembit built in this space?

Pain Cave Live is the one fitness build we have published: an indoor-cycling platform where riders train together on live video with their performance data on screen. We delivered it full-cycle: “Frontend, backend, streaming infrastructure, and device integration”. The stack is Janus WebRTC in SFU mode, Angular, Node.js and WebSocket, with ANT+ and Bluetooth sensors. Besides the sync result above, the results the case study lists include “Real-time rankings” and “Reconnect-safe” rides.

The other builds in this guide are adjacent, not fitness: a live webinar platform for large sessions, recordings turned into on-demand content (Bullpit, the corporate LMS), offline access (Pedestal) and Wear OS watch apps that work with no internet (GridSync). We have not published a case study of a HealthKit or Health Connect integration, so the health-store and cloud-API sections of this guide rest on the platform documentation cited, not on our own delivery.

Frequently asked questions

What do I need to build a fitness streaming app?

Four parts: live class delivery, an on-demand library, a wearable and sensor data layer, and a product layer. See the parts table.

Can I use HLS for live fitness classes?

Yes, for broadcast classes where members watch and a few seconds of delay is acceptable. If the instructor must see members, or members compete live, use WebRTC through an SFU.

How do I turn live classes into on-demand content?

Record every class and publish it with the fields members filter on, such as duration, intensity and equipment. An interactive class needs a separate recording component and, in our view, consent from the members on camera.

How do I connect Apple Watch, Android phones and Wear OS to my app?

HealthKit and its workout sessions on Apple devices, Health Connect on Android phones, Health Services on Wear OS. If you still use the Google Fit APIs, plan the migration now: Google’s migration guide says they are supported until the end of 2026.

Does HIPAA apply to a fitness app?

In our view, usually not, unless you deliver the service for a covered entity such as a provider or health plan. The FTC’s Health Breach Notification Rule can apply instead.

What drives the cost of building a fitness streaming app?

In our view: the class format, the number of platforms (iOS, Android, web, watch), the wearable paths and supported devices, whether every class becomes a library item, offline and DRM needs, and the data rules. Bring those to the call below for an estimate. For real-time video running costs, see what CTOs actually pay for WebRTC.

Is video the product, not a feature? Book a free 30-minute architecture call with a Trembit engineer. Bring your class format, the wearables and sensors your members use, and the part you are weighing: build or buy. If your product depends on HealthKit or Health Connect, say so up front. We’ll pressure-test the architecture with you. No deck, no pitch.

Maryna Poplavska
Written by Maryna Poplavska Project Manager & Business Analyst

Related Articles

Ready to start?

Let Us Work Together

Tell us about your project and we'll get back within 24 hours.

Get in Touch