Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

How does Unity Ads works with memory?

Discussion in 'Unity Ads & User Acquisition' started by AlekseevAV, Oct 13, 2017.

  1. AlekseevAV

    AlekseevAV

    Joined:
    Jul 20, 2017
    Posts:
    6
    I'm using Unity Ads and I want to have full memory control in my app. So, i've got a question about how Unity Ads works with memory?

    I gues that's work like this:

    • When I start my app, Unity Ads Initializing automaticly(I see logs of it).

    • When Ads Initialized, it's starting to find video to show. It's loading video from internet and put it into apps' cach(to internal storage, NOT in memory). After it's done, method IsReady() returns true.

    • When I call Show() method it start to stream video from internal storage and IsReady() start returning false again.

    • When video is done, it's loading next video.
    Am I understanding correct?

    The next question about network trafic. As I understaning, unity downlodaing video to a local storage. So, the questing is: what will be happening if user will close my app and open it again. Will it download from internet or it will read from local storage?

    Thanks
     
  2. FritzH

    FritzH

    Developer Relations Unity Technologies

    Joined:
    Aug 18, 2015
    Posts:
    45
    That is correct with one minor caveat:

    The next video begins caching while the first video plays. This generally makes the second video available as soon as the previous video finishes.
     
    Smireles and Ishidres like this.
  3. AlekseevAV

    AlekseevAV

    Joined:
    Jul 20, 2017
    Posts:
    6
    Thank you for the answer!