class UserAgent::Browsers::Libavformat
The user agent utilized by ffmpeg or other projects utilizing libavformat
Public Class Methods
extend?(agent)
click to toggle source
# File lib/user_agent/browsers/libavformat.rb, line 5 def self.extend?(agent) agent.detect do |useragent| useragent.product == "Lavf" || (useragent.product == "NSPlayer" && agent.version == "4.1.0.3856") end end
Public Instance Methods
browser()
click to toggle source
@return [“libavformat”] To make it easy to pick it out, all of the UAs that Lavf uses have this browser.
# File lib/user_agent/browsers/libavformat.rb, line 12 def browser "libavformat" end
os()
click to toggle source
@return [nil] Lavf doesn't return us anything here
# File lib/user_agent/browsers/libavformat.rb, line 22 def os nil end
platform()
click to toggle source
@return [nil] Lavf doesn't return us anything here
# File lib/user_agent/browsers/libavformat.rb, line 27 def platform nil end
version()
click to toggle source
@return [nil, Version] If the product is NSPlayer, we don't have a version
Calls superclass method
UserAgent::Browsers::Base#version
# File lib/user_agent/browsers/libavformat.rb, line 17 def version super unless detect_product("NSPlayer") end