Sha256: f3366cafa8201c78d8cad1ba1dbc6ae3269688f4a03c79005d5d6d44595172b3
Contents?: true
Size: 876 Bytes
Versions: 8
Compression:
Stored size: 876 Bytes
Contents
class UserAgent module Browsers # The user agent utilized by ffmpeg or other projects utilizing libavformat class Libavformat < Base def self.extend?(agent) agent.detect do |useragent| useragent.product == "Lavf" || (useragent.product == "NSPlayer" && agent.version == "4.1.0.3856") end end # @return ["libavformat"] To make it easy to pick it out, all of the UAs that Lavf uses have this browser. def browser "libavformat" end # @return [nil, Version] If the product is NSPlayer, we don't have a version def version super unless detect_product("NSPlayer") end # @return [nil] Lavf doesn't return us anything here def os nil end # @return [nil] Lavf doesn't return us anything here def platform nil end end end end
Version data entries
8 entries across 8 versions & 1 rubygems