Nat
Nat

Reputation: 12948

QLPreviewController play item

If we have a QLPreviewController with video file inside, the video is loaded is a paused state. The user has to tap on play icon to make it play. I can't find any (legal) programmatic way to play the video, is there anything?

Upvotes: 0

Views: 182

Answers (1)

Vitalii Gozhenko
Vitalii Gozhenko

Reputation: 9354

There is no public API for this (according to documentation).

There is workaround with private API usage, but in this case app can be rejected by Apple:

Iterate through subviews in QLPreviewController, find "play" button, and tap on it programatically.

Upvotes: 1

Related Questions