Changes between Version 15 and Version 16 of MEDIA_FRAME_CONTROLS_R0


Ignore:
Timestamp:
05/13/09 13:34:20 (16 years ago)
Author:
peko
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MEDIA_FRAME_CONTROLS_R0

    v15 v16  
    2929  * play, stop and pause. 
    3030  * "Buttons" can be active and not active - if a button is not active its SceneElement's color is more transparent than the colors of the active buttons. 
    31   * The pause button should always be active. 
     31  * We should have one button that is for play and pause. Its icon should be changed correspondingly to the state of the media: 
     32   * When the media is playing the pause icon should be set to the button. 
     33   * When the media is stopped or paused the play icon should be set. 
    3234  * The stop button should be active only when the media is playing. 
    3335  * The start button should be active only when the media is stopped or paused. 
    34   * Clicking the start button when the media is stopped will start the playback from the beginning. If the media is pause it will continue as if the pause button is pressed again. 
    35   * Clicking the stop button when the media is started will stop the playback and set the time of media to the beginning. 
    36   * Clicking the pause button will pause the media. One should click the same button to resume the media. It they click the play button instead the media will start from the beginning. 
     36  * Clicking the play/pause button when the media is stopped will start the playback from the beginning. If the media is paused it should continue from where stopped. The same button is used to pause the media and play it. 
     37  * Clicking the stop button when the media is started will stop the playback and set the time of media to the beginning. Clicking this button when the media is pause will do the same. 
    3738 * Allow controllers to communicate with a frame's content. 
    3839 * Think about how controllers can be skinned 
     
    7980  * In order to do so, make the scene element of the MediaContentView a composite one and add the media scene element as well as the scene elements of the controls to it. Every descendant of the MediaContentView (VideoContentView and AudioContentView for the time being) will provide a media element instead of just an element. Whether the media is playing or not will be kept in a value property inside the MediaContentView. This is needed for the ManipulationViews to update their state and appearance correspondingly (alpha values of colors for their scene elements). 
    8081 * The changing of the alpha values of the scene elements will be done by a MediaManipulationLogic that is common both for Audio and Video. 
    81  * The managing of the media playback will be done by two other logics - AudioLogic and VideoLogic: 
     82 * The managing of the media playback will be done by a single logic instead of the two that we now have. This will be named MediaLogic and will be responsible for adding media and controlling it. 
    8283[[Image(source:branches/private/peko/sophie2-platform/doc/uml-design-diagrams/media-logics-uml.png)]] 
    8384 * Logics will be put in: '''/modules/org.sophie2.main.func.media/src/main/java/org/sophie2/main/func/media/logic''' 
    8485 * MediaManipulationViews - '''/modules/org.sophie2.main.func.media/src/main/java/org/sophie2/main/func/media/view/controls''' 
    85  
     86 * The icons that we will use: 
     87  * Play icon - [[Image(source:branches/private/peko/sophie2-platform/modules/org.sophie2.main.func.media/src/main/resources/distrib/icons/play.png)]] 
     88  * Pause icon - [[Image(source:branches/private/peko/sophie2-platform/modules/org.sophie2.main.func.media/src/main/resources/distrib/icons/pause.png)]] 
     89  * Stop icon - [[Image(source:branches/private/peko/sophie2-platform/modules/org.sophie2.main.func.media/src/main/resources/distrib/icons/stop.png)]] 
     90  * '''Note''': The icon are just the what one will see upon media playback. Nevertheless the play/pause button will use two icon while stop button will have only one. 
    8691= Implementation = 
    8792 * implemented according to desing. Demo included in org.sophie2.author module because of module dependencies. An audio and a video files included in the resources.