Annotations

Yt::Annotation represents a video annotation. Initialize iterating through Yt::Video#annotations:

video = Yt::Video.new id: 'BPNYv0vd78A'
video.annotations.first
# => #<Yt::Annotation:0x…>

Authentication

All methods of Yt::Annotation do not require any form of authentication.


List of Yt::Annotation methods

no authentication required Annotation’s Location
→ Yt docsannotation.above? 50 # => false
→ Yt docsannotation.below? 30 # => true
no authentication required Annotation’s Duration
→ Yt docsannotation.starts_after? 4 # => false
→ Yt docsannotation.starts_before? 20 # => true
no authentication required Annotation’s Content
→ Yt docsannotation.text # => "Hello, world!"
→ Yt docsannotation.has_link_to_subscribe? # => true
→ Yt docsannotation.has_link_to_video? # => false
→ Yt docsannotation.has_link_to_playlist? # => true
→ Yt docsannotation.has_link_to_same_window? # => false
→ Yt docsannotation.has_invideo_programming? # => true