Top

iOS | Video play

Comments

2 comments

  • 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
    Comment actions Permalink
  • Le-Trong-Nghia HUYNH

    Hello Patrik,

    Thanks for the feedback!

    0
    Comment actions Permalink

Please sign in to leave a comment.

Still can't find what you need?

  • Contact Us

    Do you have any question about Rainbow? Leave us a message to get more information.

    Contact
  • Ask the Community

    Do you need help? Ask your questions in the Community to get answers from other Rainbow users.

    Post message