13 lines
221 B
Ruby
13 lines
221 B
Ruby
class EmbedPlaybackOptions < PlaybackOptions
|
|
attribute :autoplay, Boolean, default: false
|
|
|
|
def as_json(*)
|
|
if !poster && t && t > 0
|
|
super.merge({ poster: "npt:#{t}" })
|
|
else
|
|
super
|
|
end
|
|
end
|
|
|
|
end
|