Compare commits
	
		
			2 Commits 
		
	
	
		
			e8bb886e93
			...
			3bc27f6e88
		
	
	| Author | SHA1 | Date | 
|---|---|---|
|  | 3bc27f6e88 | |
|  | 545272c2d3 | 
|  | @ -282,7 +282,11 @@ class _HazardRegistrationPageState extends State<HazardRegistrationPage> { | ||||||
|                 mediaType: MediaType.video, |                 mediaType: MediaType.video, | ||||||
|                 initialMediaPaths: _yinHuanVido.map((item) => item.path).toList(), |                 initialMediaPaths: _yinHuanVido.map((item) => item.path).toList(), | ||||||
|                 onMediaAdded: (value) { |                 onMediaAdded: (value) { | ||||||
|  |                   try{ | ||||||
|                     _yinHuanVido.add(ImgData(path: value, id: '')); |                     _yinHuanVido.add(ImgData(path: value, id: '')); | ||||||
|  |                   }catch(e){ | ||||||
|  |                     print("获取视频错误:${e.toString()}"); | ||||||
|  |                   } | ||||||
|                 }, |                 }, | ||||||
|                 onMediaRemoved: (value){ |                 onMediaRemoved: (value){ | ||||||
|                   _yinHuanVido.remove(value); |                   _yinHuanVido.remove(value); | ||||||
|  |  | ||||||
|  | @ -162,8 +162,15 @@ class _QuickReportPageState extends State<QuickReportPage> { | ||||||
|                 maxCount: 1, |                 maxCount: 1, | ||||||
|                 mediaType: MediaType.video, |                 mediaType: MediaType.video, | ||||||
|                 onChanged: (List<File> files) { |                 onChanged: (List<File> files) { | ||||||
|  |                   // _yinHuanVido=files[0].path; | ||||||
|  |                 }, | ||||||
|  |                   onMediaAdded:(value) { | ||||||
|                     // 上传视频 files |                     // 上传视频 files | ||||||
|                   _yinHuanVido=files[0].path; |                     try{ | ||||||
|  |                       _yinHuanVido=value; | ||||||
|  |                     }catch(e){ | ||||||
|  |                       print("获取视频失败:${e.toString()}"); | ||||||
|  |                     } | ||||||
|                   }, |                   }, | ||||||
|                 onAiIdentify: () { |                 onAiIdentify: () { | ||||||
|                   // AI 视频识别逻辑 |                   // AI 视频识别逻辑 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue