Sha256: be5ab199184b2fbb51a53876796640078d2b279ea721b138a31e82e73152b339
Contents?: true
Size: 1.34 KB
Versions: 10
Compression:
Stored size: 1.34 KB
Contents
# frozen_string_literal: true module DjiMqttConnect module Thing::Product # Live Set Quality # https://developer.dji.com/doc/cloud-api-tutorial/en/api-reference/dock-to-cloud/mqtt/dock/dock1/live.html class LiveSetQualityServicesMessage < Message def self.build(data:, bid: generate_bid, tid: generate_tid, timestamp: current_timestamp) new( bid: bid, tid: tid, data: data, timestamp: timestamp, _method: "live_set_quality" ) end # {"0":"Adaptive","1":"Smooth","2":"Standard definition","3":"High definition","4":"Ultra-high definition"} VIDEO_QUALITY_ADAPTIVE = 0 VIDEO_QUALITY_SMOOTH = 1 VIDEO_QUALITY_STANDARD_DEFINITION = 2 VIDEO_QUALITY_HIGH_DEFINITION = 3 VIDEO_QUALITY_ULTRA_HIGH_DEFINITION = 4 attribute :tid, Types::UUID attribute :bid, Types::UUID attribute :timestamp, Types::Timestamp attribute :_method, Types::String.enum("live_set_quality") attribute :data do attribute :video_id, Types::String attribute :video_quality, Types::Integer.enum( VIDEO_QUALITY_ADAPTIVE, VIDEO_QUALITY_SMOOTH, VIDEO_QUALITY_STANDARD_DEFINITION, VIDEO_QUALITY_HIGH_DEFINITION, VIDEO_QUALITY_ULTRA_HIGH_DEFINITION ) end end end end
Version data entries
10 entries across 10 versions & 1 rubygems