locked
inMemoryRandomAccess Stream RRS feed

  • Question

  • Is it possible to read and write to a InMemoryRandomAccess stream at the same time?

    For example I want store the video from my webcam and store it to the stream while displaying the video from the stream to my medieelement.

    Saturday, February 1, 2014 2:31 AM

Answers

  • Hi ECE_Studio_Man,

    Think of a Readers–writers problem, you gonna Read and Write something to a same file(stream), how could you read the part which is being written by someone? Normally you need finish one thing and continue with another thing.

    If you think real time video is important for user, play the video first and then write them to a file.

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Monday, February 3, 2014 3:38 AM
    Moderator