Search Unity

Recording GamePlay in a WebPlayer

Discussion in 'Editor & General Support' started by Rollo357, Sep 1, 2014.

  1. Rollo357

    Rollo357

    Joined:
    Nov 26, 2009
    Posts:
    49
    Hi,

    I'm doing some work for a client who would like me to record gameplay in a WebPlayer and potentially allow them to upload their video to our server, so players can share key moments of the game with each other. I've seen that there are multiple plugins that record gameplay but the best ones are iOS/Android only.

    I'm under the impression that recording gameplay from inside a WebPlayer isn't possible, for two/three key reasons.

    1. File Access is off limits in the WebPlayer, so a video source can't be saved.
    2. There's no way to process the video since DLLs can't be used in the WebPlayer.
    3. Even if I could save a video, I couldn't access it to upload it because, as I mentioned already, File Access isn't possible.

    Excuse me if my knowledge of video creation isn't great, I don't really have much experience with it. I'm sure there are probably other things that would make this even more difficult than I imagine, but does anyone know if it's possible? My client is asking for < 10 seconds of footage if it matters.

    EDIT: I've done searches on the internet, and even found threads that loosely talk about this. But generally they were from a few years ago, I don't know if anything has changed in that time.

    Thanks,
    Chris.
     
  2. fffMalzbier

    fffMalzbier

    Joined:
    Jun 14, 2011
    Posts:
    3,276
    Rollo357 and Graham-Dunnett like this.
  3. Graham-Dunnett

    Graham-Dunnett

    Administrator

    Joined:
    Jun 2, 2009
    Posts:
    4,287
    Alternatively, capture the camera and player positions, and upload those to a server which runs a standalone version of the game and renders out the gameplay frame by frame.
     
    Rollo357 likes this.
  4. PixelEnvision

    PixelEnvision

    Joined:
    Feb 7, 2012
    Posts:
    513
    Rollo357 likes this.
  5. Rollo357

    Rollo357

    Joined:
    Nov 26, 2009
    Posts:
    49
    EDIT: Ah, wait, reading what you said again I do think I misunderstood what you suggested. We could definitely make this work. I need to do some testing.

    Thank you,
    Chris.
     
    Last edited: Sep 2, 2014
  6. Rollo357

    Rollo357

    Joined:
    Nov 26, 2009
    Posts:
    49
    I've actually seen this plugin myself, I was under the impression that it only works in PC/Mac builds and I wouldn't be able to use it in a WebPlayer. Do you know if I'm wrong about that?

    Thanks for your reply,
    Chris
     
  7. Rollo357

    Rollo357

    Joined:
    Nov 26, 2009
    Posts:
    49
    Ok this idea is cool, definitely worth trying, only issue I'm thinking is that there wouldn't be any sound. We could probably live with that though.

    And is there a way that you know of that we can use to automatically convert screenshots to video on a web server? I've never tried or heard of anything that can do that but I've never researched it either. I'll need to look into it. I could probably write an application that picks up any shots that have been taken at the end of the day and use someones plugin or something to render them out I suppose. Hmm...

    Thanks for your suggestion.
    Chris.
     
    Last edited: Sep 2, 2014
  8. fffMalzbier

    fffMalzbier

    Joined:
    Jun 14, 2011
    Posts:
    3,276
    No you are not wrong about it , not plug-ins in the web-player means not use of this asset. (They are using multiple dlls)
     
  9. Rollo357

    Rollo357

    Joined:
    Nov 26, 2009
    Posts:
    49
    Hi,

    I'm sorry to resurrect this thread but I have a question about the process. I've managed to achieve everything I need to do what was suggested here. The only thing I'm really not too happy about is the amount of images I'm having to upload to the server one by one.

    I've tried stitching them together and uploading a massive texture to our server but the stitching process just seems to take too long to justify itself.

    I'd really like to add them to an archive or something so it's just a single file to upload but I've had trouble finding a library that will work in the WebPlayer and allow me to make an archive out of the images stored in an array in memory.

    Does anyone have any ideas they can share with me?

    Thanks,
    Chris.