{ "properties" : { }, "id" : "d4e5f678901234567890abcdef012345", "script" : null, "groupId" : "f8e3d2c1b0a94e5f8a7b6c5d4e3f2a1", "name" : "市场实时监控播放配置", "createTime" : 1781203200000, "updateTime" : null, "lock" : null, "createBy" : "admin", "updateBy" : "admin", "path" : "/market-realtime-player-config", "method" : "GET", "parameters" : [ ], "options" : [ ], "requestBody" : "", "headers" : [ ], "paths" : [ ], "responseBody" : null, "description" : "市场实时监控播放配置:直播流格式识别规则与播放器参数(HLS/FLV/MP4 等)。", "requestBodyDefinition" : null, "responseBodyDefinition" : null } ================================ // 直播流地址格式配置,供前端 hls.js / flv.js 自动选型 return { defaultProtocol: 'hls', urlPriority: ['hdStreamUrl', 'streamUrl', 'playUrl'], formatRules: [ { type: 'hls', match: '.m3u8', library: 'hls.js', description: 'HLS 直播(萤石 open.ys7.com 等)' }, { type: 'flv', match: '.flv', library: 'flv.js', description: 'HTTP-FLV 直播(萤石 rtmp*open.ys7.com 等)' }, { type: 'mp4', match: '.mp4', library: 'native', description: 'MP4 点播/回放' }, { type: 'webm', match: '.webm', library: 'native', description: 'WebM 点播' } ], playerOptions: { hls: { enableWorker: true, lowLatencyMode: true }, flv: { isLive: true, hasAudio: true, hasVideo: true }, flvMedia: { enableWorker: true, enableStashBuffer: false } }, ys7Templates: { hdHls: 'https://open.ys7.com/v3/openlive/{deviceSerial}_{channelNo}_1.m3u8', hls: 'https://open.ys7.com/v3/openlive/{deviceSerial}_{channelNo}_2.m3u8', hdFlv: 'https://rtmp12open.ys7.com:9188/v3/openlive/{deviceSerial}_{channelNo}_1.flv', flv: 'https://rtmp12open.ys7.com:9188/v3/openlive/{deviceSerial}_{channelNo}_2.flv' } }