src/windows/MediaProxy.js
function setTemporaryFsByDefault(src) {
    var uri;
    try {
        uri = new Windows.Foundation.Uri(src);
    } catch (e) {
        if (e.number === PARAMETER_IS_INCORRECT) {
            // Use TEMPORARY fs there is no 'scheme:'
            uri = new Windows.Foundation.Uri(tempFolderAppDataBasePath, src);
        } else {
            throw e;
        }
    } finally {
        return uri;
    }
}
function setTemporaryFsByDefault(src) {
    var uri;
    try {
        uri = new Windows.Foundation.Uri(src);
    } catch (e) {
        if (e.number === PARAMETER_IS_INCORRECT) {
            // Use TEMPORARY fs there is no 'scheme:'
            uri = new Windows.Foundation.Uri(tempFolderAppDataBasePath, src);
        } else {
            throw e;
        }
    } finally {
        return uri;
    }
}
function setTemporaryFsByDefault ( src ) { var uri ; try { uri = new Windows . Foundation . Uri ( src ) ; } catch ( e ) { if ( e . number === PARAMETER_IS_INCORRECT ) { // Use TEMPORARY fs there is no 'scheme:' uri = new Windows . Foundation . Uri ( tempFolderAppDataBasePath , src ) ; } else { throw e ; } } finally { return uri ; } }
Converts a path to Windows.Foundation.Uri basing on App data temporary folder
if scheme is not defined, e.g.: path/to/file.m4a -> ms-appdata:///temp/path/to/file.m4a
@param  {String} src Input path
@return {Object}     Windows.Foundation.Uri
Converts a path to Windows . Foundation . Uri basing on App data temporary folder if scheme is not defined e . g . : path / to / file . m4a - > ms - appdata : /// temp / path / to / file . m4a