Search Unity

Ask Everyplay if previous upload has completed if game was closed or paused?

Discussion in 'Unity Everyplay' started by jez_obp, Mar 29, 2016.

  1. jez_obp

    jez_obp

    Joined:
    Mar 16, 2015
    Posts:
    4
    Hi guys & gals,

    The question:
    Is there a way to reconnect or query the Everyplay service (ie... isUploading()) to see if that previous upload has completed for the situations below (extended pausing/game restarting)?

    Avoiding the tl;dr.
    • Everyplay service implemented.
    • Thumbnails / recording / sharing operational on iOS - soon to test on Android
    • Recording is activated at the start of a players round.
    • Recording is stopped at the end of that round (est round time: 10-60 seconds).
    • Player then chooses to share the recording.
    • Recording is now manually deactivated until the upload has been completed.
    • Upload progress is reported to player between rounds through UploadDidProgress if they continue playing highlighting that recording is currently disabled until the upload has been completed.
    (Example pic - thumbnail disabled as straight from Unity editor)

    https://gyazo.com/bad07c254b6068bc8b7e1e74225e7c3d

    The challenges appear if our player switches games/returns to menu & the game is now in the background. Note: If we resume our game from a pause while the upload is still uploading our upload progress will be updated & reset accordingly, this is okay!
    • "Everyplay starts to upload in the background even when your users continue playing. Once they've exited the app, it will try to continue the upload for another 10 minutes."
    Situation #1: If the upload completes while we are not in game but is paused in the background, UploadDidProgress & UploadDidCompleteDelegate will never be called so the Everyplay service will not be reset.

    Situation #2: Player chooses to share & then exits/shuts down the game. On reopening the game the Everyplay upload status is reset. If the upload has not completed & the player enters a round, the recording will now begin to overwrite the previous recording that is now being uploaded in the background.

    Hopefully it's a "duh" moment on my behalf...
     
  2. jez_obp

    jez_obp

    Joined:
    Mar 16, 2015
    Posts:
    4
    This question has been answered by directly contacting Everyplay Support.

    In short, there is no need to manually safeguard recordings.

    Big thanks to SP @ Everyplay support!