Top

iOS | Video play

Commentaires

2 commentaires

  • Patrik Spisak

    I figgured out by myself.

    First I had to save data into URL

     let tmpFileURL = URL(fileURLWithPath:NSTemporaryDirectory()).appendingPathComponent(message.attachment!.fileName ?? "video")

     let wasFileWritten = (try? message.attachment!.data!.write(to: tmpFileURL, options: [.atomic])) != nil

    And then I could pass that URL into VideoPlayer from AVKit.

    1
    Actions pour les commentaires Permalien
  • Le-Trong-Nghia HUYNH

    Hello Patrik,

    Thanks for the feedback!

    0
    Actions pour les commentaires Permalien

Vous devez vous connecter pour laisser un commentaire.

Vous n'avez pas trouvé ce que vous cherchez?

  • Contactez-nous

    Vous avez des questions? Laissez-nous un message pour obtenir plus d'informations.

    Contactez-nous
  • Demandez à la Communauté

    Vous avez besoin d'aide? Posez vos questions à la Communauté et obtenez des réponses d'autres utilisateurs Rainbow.

    Poster un message