Lanka Developers Community

    Lanka Developers

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Shop

    Play encrypted video in flutter

    Flutter
    flutter encryption android ios video
    3
    3
    1799
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ?
      A Former User last edited by

      Hi all,

      I have a requirement to play encrypted videos in a flutter application. These files will be stored locally in a mobile device and be played when requested by the media player. The file cannot be decrypted beforehand because of performance issues. Is there a way to handle the decryption while playing the video itself (decrypt file in chunks) ? I'm trying to achieve this through dart itself because this will be used in both iOS and Android. What is the best approach to achieve this? Any comments or suggestions would be appreciated.

      Thank you

      1 Reply Last reply Reply Quote 0
      • pavinduLakshan
        pavinduLakshan last edited by

        Hi @sajadj313 ,

        If you have not decided how you are going to encrypt videos, I'd suggest you to use DASH.

        DASH allows encrypting your video files and later streaming videos to the player real time. Therefore videos will not completely be decrypted beforehand.

        Flutter video_,player supports both Android and iOS. It also supports DASH type media files (files that have .mpd extension). Therefore, in your scenario, I think using video_player package in flutter along with a way to convert your media files to DASH would be a good solution.

        Ravindu Yasas 1 Reply Last reply Reply Quote 0
        • Ravindu Yasas
          Ravindu Yasas FOSS @pavinduLakshan last edited by

          @pavindulakshan how to apply encryption to the text fields in flutter! (Flutter+firestore)

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post

          0
          Online

          3.6k
          Users

          1.3k
          Topics

          5.3k
          Posts

          • Privacy
          • Terms & Conditions
          • Donate

          © Copyrights and All right reserved Lanka Developers Community

          Powered by Axis Technologies (PVT) Ltd

          Made with in Sri Lanka

          | |