You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
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
|