GabrielMassana / streamAndSave

Example of how to stream and play a video while downloading with AVURLAsset and save the buffer to disk.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

streamAndSave

Example of how to stream and play a video while downloading with AVURLAsset and save the buffer to disk.

Requirements - Tag 1.0.0

  • Play a video with AVPlayer.
  • Play the video while downloading it.
  • Save the video on disk when it is compleated

Extra requirements - Tag 1.1.0

  • Add a spinner while first frames get downloaded
  • Detect if buffer is empty and show a replay button

About

Example of how to stream and play a video while downloading with AVURLAsset and save the buffer to disk.


Languages

Language:Swift 100.0%