wiki:BOOK_BACKGROUND_AUDIO_R0

Version 2 (modified by deni, 15 years ago) (diff)

--

Error: Macro BackLinksMenu(None) failed
compressed data is corrupt

Error: Macro TicketQuery(summary=BOOK_BACKGROUND_AUDIO_R0, format=table, col=summary|owner|status|type|component|priority|effort|importance, rows=description|analysis_owners|analysis_reviewers|analysis_score|design_owners|design_reviewers|design_score|implementation_owners|implementation_reviewers|implementation_score|test_owners|test_reviewers|test_score|) failed
current transaction is aborted, commands ignored until end of transaction block

Analysis

(Give as much as possible of the needed information for designing and implementing the task in the following sections.)

Overview

With the timelines conception that we have now it is impossible to have an audio background which plays for the whole book no matter if the user go through the pages in the same time. With this task we must add such functionality.

Task requirements

  • In the book properties window, which is evoked from the File>Book Properties, create a dropdown menu which includes all audio resources available for the current book.
  • Next to it must be a checkbox which toggles whether the audio should be looped or not.
  • (optional) When a new book is created the dropdown menu must not be presented because there are no audio resources in the new books.

Task result

The result of this task must be source code.

Implementation idea

  • Change BookPropertiesDialog.Input to be constructed not by BookInfo, but by BookH. This will enable it to collect all audio resources in the current book and give them to the dialog which will show them in a combo box.
  • See the implementation of media frame views and add such functionality in BookView.
  • Make sure that a book with background audio can be persisted approproately.

BOOK_PROPERTIES_DIALOG_R0

How to demo

  • Create a book.
  • Add some audio resources.
  • Choose one audio file for background of the book.
  • Open the book with preview mode or in reader.

Design

(Describe your design here.)

Implementation

(Describe and link the implementation results here (from the wiki or the repository).)

Testing

(Place the testing results here.)

Comments

(Write comments for this or later revisions here.)