« lib/Video/PlaybackMachine/TimeLayout/FixedTimeLayout.pm
↑ Summary
lib/Video/PlaybackMachine/Logger.pm »
| 1 | package Video::PlaybackMachine::FillProducer; | ||
| 2 | |||
| 3 | 3 | our $VERSION = '0.09'; # VERSION | |
| 4 | |||
| 5 | 3 | ▶ | use Moo::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | #### | ||
| 8 | #### Video::PlaybackMachine::FillProducer | ||
| 9 | #### | ||
| 10 | #### $Revision$ | ||
| 11 | #### | ||
| 12 | #### Interface for different ways of producing Fill content. | ||
| 13 | #### | ||
| 14 | |||
| 15 | 3 | requires qw/start time_layout is_available has_audio/; | |
| 16 | |||
| 17 | ############################# Class Constants ############################# | ||
| 18 | |||
| 19 | ############################## Class Methods ############################## | ||
| 20 | |||
| 21 | ############################# Object Methods ############################## | ||
| 22 | |||
| 23 | ## | ||
| 24 | ## start() | ||
| 25 | ## | ||
| 26 | ## Arguments: | ||
| 27 | ## TIME: int -- time in seconds that we're to fill | ||
| 28 | ## | ||
| 29 | ## Starts production of fill content. When it's ready, the | ||
| 30 | ## FillProducer will send a 'still_ready' or 'movie_ready' | ||
| 31 | ## signal. | ||
| 32 | ## | ||
| 33 | |||
| 34 | ## | ||
| 35 | ## get_time_layout() | ||
| 36 | ## | ||
| 37 | ## Returns: | ||
| 38 | ## Video::PlaybackMachine::TimeLayout | ||
| 39 | ## | ||
| 40 | ## Returns a TimeLayout that tells us how long the given | ||
| 41 | ## content should be played. | ||
| 42 | ## | ||
| 43 | |||
| 44 | ## | ||
| 45 | ## is_available() | ||
| 46 | ## | ||
| 47 | ## Returns: | ||
| 48 | ## boolean | ||
| 49 | ## | ||
| 50 | ## Returns true if this producer has something it can do, false otherwise. | ||
| 51 | ## | ||
| 52 | |||
| 53 | ## | ||
| 54 | ## has_audio() | ||
| 55 | ## | ||
| 56 | ## Returns: | ||
| 57 | ## boolean | ||
| 58 | ## | ||
| 59 | ## Returns true if this producer will produce audio content. | ||
| 60 | ## | ||
| 61 | |||
| 62 | 3 | ▶ | no Moo::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 63 | |||
| 64 | 3 | 1; | |