Changes between Version 3 and Version 4 of NFR_LARGE_RESOURCES_R0


Ignore:
Timestamp:
11/03/09 16:43:40 (15 years ago)
Author:
meddle
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NFR_LARGE_RESOURCES_R0

    v3 v4  
    1010 
    1111== Task requirements == 
    12 ^(List the necessary requirements that the task must fulfill.)^ 
     12 * Created a special BinData that can contain link to a file and reads only requested parts of it. 
     13 * When the user opens big files for resources containing BinData ask the user if he/she wants to link the file or automatically link the file if it is too large. 
     14  * If the file is smaller than ? MB automatically embed it. 
     15  * If the file is between ? MB and ? MB ask the user if he/she wants to link or embed it. 
     16  * If the file is bigger than ? MB  automatically link it. 
     17 * Create special dialog for user interaction for large files or modify the file dialog if possible. 
     18 * Create BinData that can link every type of URL (optional, hard because there could be no API that can do that). 
     19 * Ask the user if he/she wants to copy the file in special directory that can be transferred with the book. (optional, hard due to relative paths). 
     20  * That will work only with files saved on the file system. 
     21 * Think of working with large resources on the server (optional, that is different task, but if there is time there could be done something). 
    1322 
    1423== Task result == 
    15 ^(List the end product of the task (for example "Source code", "Wiki page", etc.))^ 
     24The result of this task will be source code. 
    1625 
    1726== Implementation idea == 
    18 ^(Provide some rough implementation idea(s).)^ 
     27 * Make the current BinData abstract class that has two extenders: 
     28  * EmbeddedBinData (working as the current one) 
     29  * FileBinData (linking files). 
     30 * Make the FileBinData#getSub method to read from it's file with random access. 
     31  * First it will seek to the wanted position in the file. 
     32  * Then it will return a new BinData containing only the bytes from the passed position with length, the passed one. 
    1933 
    2034== Related == 
    21 ^(Add links to related tasks that could be useful or helpful.)^ 
     35[wiki:S2S_LARGE_RESOURCES_R0][[BR]] 
     36[wiki:NFR_VIDEO_PERFORMANCE_R0] 
    2237 
    2338== How to demo == 
    24 ^(Provide instructions for demonstration of the task.)^ 
     39 * Run Sophie. 
     40  * In the insert menu click on "insert video..."   
     41  * Insert big video file (40-50MB or bigger). 
     42  * Try to play it. It should play if the format is supported. 
     43 * Run Sophie. 
     44  * In the insert menu click on "insert video..." 
     45  * Insert average video (between ? MB and ? MB) 
     46  * You should be asked if you want to link or embed the video. 
     47  * Try to play the video. It should play if the format is supported. 
    2548 
    2649= Design =