« lib/Video/PlaybackMachine/Schema/Result/Schedule.pm
↑ Summary
lib/Video/PlaybackMachine/Schema/Result/ScheduleEntry.pm »
| 1 | package Video::PlaybackMachine::FillProducer::AbstractStill; | ||
| 2 | |||
| 3 | 3 | our $VERSION = '0.09'; # VERSION | |
| 4 | |||
| 5 | #### | ||
| 6 | #### Video::PlaybackMachine::FillProducer::AbstractStill | ||
| 7 | #### | ||
| 8 | #### $Revision$ | ||
| 9 | #### | ||
| 10 | #### | ||
| 11 | #### | ||
| 12 | |||
| 13 | 3 | ▶ | use Moo::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | |||
| 15 | 3 | ▶ | use Carp; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 16 | |||
| 17 | 3 | with 'Video::PlaybackMachine::FillProducer'; | |
| 18 | |||
| 19 | 3 | ▶ | use Video::PlaybackMachine::TimeLayout::FixedTimeLayout; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 20 | |||
| 21 | |||
| 22 | ############################# Parameters ############################# | ||
| 23 | |||
| 24 | 3 | has 'time' => ( | |
| 25 | is => 'ro', | ||
| 26 | required => 1 | ||
| 27 | ); | ||
| 28 | |||
| 29 | 3 | has 'time_layout' => ( | |
| 30 | is => 'lazy', | ||
| 31 | ); | ||
| 32 | |||
| 33 | |||
| 34 | ############################# Object Methods ############################## | ||
| 35 | |||
| 36 | 10 | ▶ | sub _build_time_layout { |
|
Subroutine
_build_time_layout: called CC=1 SCAR=0.0
| |||
| 37 | 10 | my $self = shift; | |
| 38 | |||
| 39 | 10 | return Video::PlaybackMachine::TimeLayout::FixedTimeLayout->new( $self->time() ) | |
| 40 | } | ||
| 41 | |||
| 42 | ## | ||
| 43 | ## get_time_layout() | ||
| 44 | ## | ||
| 45 | ## Returns the FixedTimeLayout for the appropriate time. | ||
| 46 | ## | ||
| 47 | 0 | ▶ | sub get_time_layout { |
|
Subroutine
get_time_layout: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 48 | 0 | my $self = shift; | |
| 49 | |||
| 50 | 0 | carp "get_time_layout() deprecated! use time_layout() instead!"; | |
| 51 | |||
| 52 | 0 | return $self->time_layout(); | |
| 53 | |||
| 54 | } | ||
| 55 | |||
| 56 | ## | ||
| 57 | ## has_audio() | ||
| 58 | ## | ||
| 59 | ## Stills don't have an audio track. | ||
| 60 | ## | ||
| 61 | 1 | ▶ | sub has_audio { return; } |
|
Subroutine
has_audio: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 62 | |||
| 63 | ## | ||
| 64 | ## is_available() | ||
| 65 | ## | ||
| 66 | ## Stills are always available. Unless they aren't. | ||
| 67 | ## | ||
| 68 | 0 | ▶ | sub is_available { 1; } |
|
Subroutine
is_available: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 69 | |||
| 70 | 3 | ▶ | no Moo::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 71 | |||
| 72 | 3 | 1; | |