use local example clips for iOS demo flow

This commit is contained in:
2026-04-10 11:04:32 +02:00
parent 7b466f0a34
commit 42ea941686
2 changed files with 24 additions and 3 deletions
@@ -382,7 +382,7 @@ struct RoundView: View {
}
phase = .reveal
playerCoordinator.play(url: round.media.hlsMasterUrl, startTimeMs: round.media.revealStartMs, rate: 1.0)
playerCoordinator.play(url: revealMediaURL(for: round), startTimeMs: round.media.revealStartMs, rate: 1.0)
analytics.track("reveal_started", attributes: roundAnalyticsAttributes(round).merging(baseSelectionAttributes(selectedOutcomeID)) { _, new in new })
}
} catch {
@@ -426,6 +426,10 @@ struct RoundView: View {
round.market.outcomes.sorted(by: { $0.sortOrder < $1.sortOrder })
}
private func revealMediaURL(for round: HermesRound) -> URL {
repository.currentSession?.deviceModel == "Demo Device" ? MockHermesData.revealMediaURL() : round.media.hlsMasterUrl
}
private func promptTitle(for round: HermesRound?) -> String {
guard let round else {
return localization.string(for: "common.loading")