Skip to content
  • Hugo Lefeuvre's avatar
    media_recorder: deprecate path generation · 1c057a3a
    Hugo Lefeuvre authored and Adrien Béraud's avatar Adrien Béraud committed
    Recorded conversations should be stored at a location specified by
    the client.
    
    Currently the MediaRecorder generates a filename using timestamps,
    and the directory is either specified by the user in the config.yml
    or defaulted to the user's /home. This is not a wanted behavior.
    
    This commit introduces the necessary logic to set recording file path
    using setPath and deprecates the old way of specifying filename and
    dir.
    
    The changes are backward compatible for transition purposes.
    
    In addition to this refactoring, this commit renames the getFilename()
    method to getPath(). In fact this method returns "full paths" and not
    filenames, so it doesn't make much sense to call it getFilename().
    
    Change-Id: I8eb9756dd1bf2a18fb0c97eec8b9bb72c259a7e5
    1c057a3a