Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QUESTION] when i use video mp4 throw exception #930

Closed
NemoChen317 opened this issue Dec 9, 2021 · 3 comments · Fixed by #940
Closed

[QUESTION] when i use video mp4 throw exception #930

NemoChen317 opened this issue Dec 9, 2021 · 3 comments · Fixed by #940
Labels

Comments

@NemoChen317
Copy link

NemoChen317 commented Dec 9, 2021

when i use this html string

<div><br></div><div><span style="font-size: 15px;">口舒爽全效漱口水200ml - <strike>原價</strike></span><strike>12瓶&nbsp;&nbsp;</strike></div><div><font color="#cd1818">限量 買一送一&nbsp; 共24瓶</font></div><div><span style="font-size: 15px;">一次使用20ml</span><br></div><div><span style="font-size: 15px;"><br></span></div><div>請觀看簡報教學<span style="font-size: 15px;"><br></span></div><div><br>   <video style="width: 100%" controls="" src="https://www.handsfree.com.tw/NodeImages/正確使用漱口水_1621993781988_1625024166045.mp4" poster="" type="video/mp4" preload="none"></video><div><br></div></div><div><br>   <video style="width: 100%" controls="" src="https://www.handsfree.com.tw/NodeImages/漱口水影片_1621993724842_1625024180467.mp4" poster="" type="video/mp4" preload="none"></video><br></div><div><br></div><style>div{word-break: break-all}</style>

and i got an Exception

======== Exception caught by image resource service ================================================
The following ArgumentError was thrown resolving an image codec:
Invalid argument(s): No host specified in URI file:///

When the exception was thrown, this was the stack: 
#0      _HttpClient._openUrl (dart:_http/http_impl.dart:2662:9)
#1      _HttpClient.getUrl (dart:_http/http_impl.dart:2573:48)
#2      NetworkImage._loadAsync (package:flutter/src/painting/_network_image_io.dart:89:59)
#3      NetworkImage.load (package:flutter/src/painting/_network_image_io.dart:50:14)
#4      ImageProvider.resolveStreamForKey.<anonymous closure> (package:flutter/src/painting/image_provider.dart:505:13)
#5      ImageCache.putIfAbsent (package:flutter/src/painting/image_cache.dart:380:22)
#6      ImageProvider.resolveStreamForKey (package:flutter/src/painting/image_provider.dart:503:83)
#7      ScrollAwareImageProvider.resolveStreamForKey (package:flutter/src/widgets/scroll_aware_image_provider.dart:106:19)
#8      ImageProvider.resolve.<anonymous closure> (package:flutter/src/painting/image_provider.dart:333:9)
#9      ImageProvider._createErrorHandlerAndKey.<anonymous closure>.<anonymous closure> (package:flutter/src/painting/image_provider.dart:464:26)
#10     SynchronousFuture.then (package:flutter/src/foundation/synchronous_future.dart:41:35)
#11     ImageProvider._createErrorHandlerAndKey.<anonymous closure> (package:flutter/src/painting/image_provider.dart:461:11)
#15     ImageProvider._createErrorHandlerAndKey (package:flutter/src/painting/image_provider.dart:453:16)
#16     ImageProvider.resolve (package:flutter/src/painting/image_provider.dart:330:5)
#17     _ImageState._resolveImage (package:flutter/src/widgets/image.dart:1187:16)
#18     _ImageState.didChangeDependencies (package:flutter/src/widgets/image.dart:1139:5)
#19     StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4826:11)
#20     ComponentElement.mount (package:flutter/src/widgets/framework.dart:4638:5)
#21     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3673:14)
#22     MultiChildRenderObjectElement.inflateWidget (package:flutter/src/widgets/framework.dart:6333:36)
#23     MultiChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:6344:32)
...     Normal element mounting (42 frames)
#65     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3673:14)
#66     MultiChildRenderObjectElement.inflateWidget (package:flutter/src/widgets/framework.dart:6333:36)
#67     MultiChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:6344:32)
...     Normal element mounting (37 frames)
#104    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3673:14)
#105    MultiChildRenderObjectElement.inflateWidget (package:flutter/src/widgets/framework.dart:6333:36)
#106    MultiChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:6344:32)
...     Normal element mounting (37 frames)
#143    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3673:14)
#144    MultiChildRenderObjectElement.inflateWidget (package:flutter/src/widgets/framework.dart:6333:36)
#145    MultiChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:6344:32)
...     Normal element mounting (34 frames)
#179    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3673:14)
#180    MultiChildRenderObjectElement.inflateWidget (package:flutter/src/widgets/framework.dart:6333:36)
#181    MultiChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:6344:32)
...     Normal element mounting (22 frames)
#203    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3673:14)
#204    Element.updateChild (package:flutter/src/widgets/framework.dart:3422:20)
#205    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#206    Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#207    StatelessElement.update (package:flutter/src/widgets/framework.dart:4746:5)
#208    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#209    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#210    Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#211    StatelessElement.update (package:flutter/src/widgets/framework.dart:4746:5)
#212    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#213    RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:5700:32)
#214    MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6356:17)
#215    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#216    SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6202:14)
#217    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#218    SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6202:14)
#219    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#220    SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6202:14)
#221    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#222    SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6202:14)
#223    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#224    SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6202:14)
#225    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#226    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#227    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4840:11)
#228    Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#229    StatefulElement.update (package:flutter/src/widgets/framework.dart:4872:5)
#230    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#231    SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6202:14)
#232    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#233    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#234    Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#235    ProxyElement.update (package:flutter/src/widgets/framework.dart:5020:5)
#236    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#237    SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6202:14)
#238    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#239    SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6202:14)
#240    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#241    SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6202:14)
#242    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#243    SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6202:14)
#244    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#245    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#246    Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#247    StatelessElement.update (package:flutter/src/widgets/framework.dart:4746:5)
#248    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#249    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#250    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4840:11)
#251    Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#252    StatefulElement.update (package:flutter/src/widgets/framework.dart:4872:5)
#253    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#254    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#255    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4840:11)
#256    Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#257    StatefulElement.update (package:flutter/src/widgets/framework.dart:4872:5)
#258    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#259    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#260    Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#261    ProxyElement.update (package:flutter/src/widgets/framework.dart:5020:5)
#262    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#263    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#264    Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#265    StatelessElement.update (package:flutter/src/widgets/framework.dart:4746:5)
#266    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#267    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#268    Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#269    ProxyElement.update (package:flutter/src/widgets/framework.dart:5020:5)
#270    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#271    RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:5700:32)
#272    MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6356:17)
#273    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#274    RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:5700:32)
#275    MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6356:17)
#276    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#277    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#278    Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#279    ProxyElement.update (package:flutter/src/widgets/framework.dart:5020:5)
#280    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#281    SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6202:14)
#282    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#283    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#284    Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#285    StatelessElement.update (package:flutter/src/widgets/framework.dart:4746:5)
#286    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#287    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#288    Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#289    ProxyElement.update (package:flutter/src/widgets/framework.dart:5020:5)
#290    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#291    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#292    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4840:11)
#293    Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#294    StatefulElement.update (package:flutter/src/widgets/framework.dart:4872:5)
#295    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#296    SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6202:14)
#297    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#298    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#299    Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#300    StatelessElement.update (package:flutter/src/widgets/framework.dart:4746:5)
#301    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#302    SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6202:14)
#303    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#304    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#305    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4840:11)
#306    Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#307    StatefulElement.update (package:flutter/src/widgets/framework.dart:4872:5)
#308    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#309    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#310    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4840:11)
#311    Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#312    StatefulElement.update (package:flutter/src/widgets/framework.dart:4872:5)
#313    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#314    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#315    Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#316    StatelessElement.update (package:flutter/src/widgets/framework.dart:4746:5)
#317    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#318    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#319    Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#320    ProxyElement.update (package:flutter/src/widgets/framework.dart:5020:5)
#321    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#322    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#323    Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#324    ProxyElement.update (package:flutter/src/widgets/framework.dart:5020:5)
#325    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#326    RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:5700:32)
#327    MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6356:17)
#328    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#329    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#330    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4840:11)
#331    Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#332    StatefulElement.update (package:flutter/src/widgets/framework.dart:4872:5)
#333    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#334    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#335    Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#336    ProxyElement.update (package:flutter/src/widgets/framework.dart:5020:5)
#337    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#338    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#339    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4840:11)
#340    Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#341    StatefulElement.update (package:flutter/src/widgets/framework.dart:4872:5)
#342    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#343    SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6202:14)
#344    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#345    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#346    Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#347    StatelessElement.update (package:flutter/src/widgets/framework.dart:4746:5)
#348    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#349    SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6202:14)
#350    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#351    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#352    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4840:11)
#353    Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#354    StatefulElement.update (package:flutter/src/widgets/framework.dart:4872:5)
#355    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#356    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#357    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4840:11)
#358    Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#359    StatefulElement.update (package:flutter/src/widgets/framework.dart:4872:5)
#360    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#361    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#362    Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#363    ProxyElement.update (package:flutter/src/widgets/framework.dart:5020:5)
#364    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#365    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#366    Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#367    StatelessElement.update (package:flutter/src/widgets/framework.dart:4746:5)
#368    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#369    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#370    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4840:11)
#371    Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#372    StatefulElement.update (package:flutter/src/widgets/framework.dart:4872:5)
#373    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#374    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#375    Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#376    ProxyElement.update (package:flutter/src/widgets/framework.dart:5020:5)
#377    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#378    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#379    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4840:11)
#380    Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#381    StatefulElement.update (package:flutter/src/widgets/framework.dart:4872:5)
#382    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#383    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#384    Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#385    BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2620:33)
#386    WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:882:21)
#387    RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:319:5)
#388    SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1143:15)
#389    SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1080:9)
#390    SchedulerBinding.scheduleWarmUpFrame.<anonymous closure> (package:flutter/src/scheduler/binding.dart:863:7)
(elided 7 frames from class _RawReceivePortImpl, class _Timer, dart:async, and dart:async-patch)
Image provider: NetworkImage("", scale: 1.0)
Image key: NetworkImage("", scale: 1.0)
====================================================================================================

======== Exception caught by image resource service ================================================
The following assertion was thrown resolving an image codec:
Unable to load asset: assets/html5.png

When the exception was thrown, this was the stack: 
#0      PlatformAssetBundle.load (package:flutter/src/services/asset_bundle.dart:224:7)
<asynchronous suspension>
#1      AssetBundleImageProvider._loadAsync (package:flutter/src/painting/image_provider.dart:675:14)
<asynchronous suspension>
Image provider: AssetImage(bundle: null, name: "assets/html5.png")
Image key: AssetBundleImageKey(bundle: PlatformAssetBundle#b9baa(), name: "assets/html5.png", scale: 1.0)
====================================================================================================
E/ExoPlayerImplInternal( 4282): Playback error
E/ExoPlayerImplInternal( 4282):   com.google.android.exoplayer2.ExoPlaybackException: Source error
E/ExoPlayerImplInternal( 4282):       at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:580)
E/ExoPlayerImplInternal( 4282):       at android.os.Handler.dispatchMessage(Handler.java:98)
E/ExoPlayerImplInternal( 4282):       at android.os.Looper.loop(Looper.java:135)
E/ExoPlayerImplInternal( 4282):       at android.os.HandlerThread.run(HandlerThread.java:61)
E/ExoPlayerImplInternal( 4282):   Caused by: com.google.android.exoplayer2.upstream.HttpDataSource$InvalidResponseCodeException: Response code: 404
E/ExoPlayerImplInternal( 4282):       at com.google.android.exoplayer2.upstream.DefaultHttpDataSource.open(DefaultHttpDataSource.java:383)
E/ExoPlayerImplInternal( 4282):       at com.google.android.exoplayer2.upstream.StatsDataSource.open(StatsDataSource.java:84)
E/ExoPlayerImplInternal( 4282):       at com.google.android.exoplayer2.source.ProgressiveMediaPeriod$ExtractingLoadable.load(ProgressiveMediaPeriod.java:1016)
E/ExoPlayerImplInternal( 4282):       at com.google.android.exoplayer2.upstream.Loader$LoadTask.run(Loader.java:417)
E/ExoPlayerImplInternal( 4282):       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
E/ExoPlayerImplInternal( 4282):       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
E/ExoPlayerImplInternal( 4282):       at java.lang.Thread.run(Thread.java:818)
E/ExoPlayerImplInternal( 4282): Playback error
E/ExoPlayerImplInternal( 4282):   com.google.android.exoplayer2.ExoPlaybackException: Source error
E/ExoPlayerImplInternal( 4282):       at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:580)
E/ExoPlayerImplInternal( 4282):       at android.os.Handler.dispatchMessage(Handler.java:98)
E/ExoPlayerImplInternal( 4282):       at android.os.Looper.loop(Looper.java:135)
E/ExoPlayerImplInternal( 4282):       at android.os.HandlerThread.run(HandlerThread.java:61)
E/ExoPlayerImplInternal( 4282):   Caused by: com.google.android.exoplayer2.upstream.HttpDataSource$InvalidResponseCodeException: Response code: 404
E/ExoPlayerImplInternal( 4282):       at com.google.android.exoplayer2.upstream.DefaultHttpDataSource.open(DefaultHttpDataSource.java:383)
E/ExoPlayerImplInternal( 4282):       at com.google.android.exoplayer2.upstream.StatsDataSource.open(StatsDataSource.java:84)
E/ExoPlayerImplInternal( 4282):       at com.google.android.exoplayer2.source.ProgressiveMediaPeriod$ExtractingLoadable.load(ProgressiveMediaPeriod.java:1016)
E/ExoPlayerImplInternal( 4282):       at com.google.android.exoplayer2.upstream.Loader$LoadTask.run(Loader.java:417)
E/ExoPlayerImplInternal( 4282):       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
E/ExoPlayerImplInternal( 4282):       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
E/ExoPlayerImplInternal( 4282):       at java.lang.Thread.run(Thread.java:818)
E/flutter ( 4282): [ERROR:flutter/shell/common/shell.cc(93)] Dart Unhandled Exception: PlatformException(VideoError, Video player had error com.google.android.exoplayer2.ExoPlaybackException: Source error, null, null), stack trace: 
E/flutter ( 4282): [ERROR:flutter/shell/common/shell.cc(93)] Dart Unhandled Exception: PlatformException(VideoError, Video player had error com.google.android.exoplayer2.ExoPlaybackException: Source error, null, null), stack trace: 

so i can't play mp4 video

@erickok
Copy link
Collaborator

erickok commented Dec 9, 2021

Seems like it is looking for a assets/html5.png which it can't find but I don't see any reference to this in your html. Is this the full html blov you are trying to render?

@NemoChen317
Copy link
Author

NemoChen317 commented Dec 9, 2021

Seems like it is looking for a assets/html5.png which it can't find but I don't see any reference to this in your html. Is this the full html blov you are trying to render?

yes. it's full html string
this html string in native kotlin android webview is Normal play

@NemoChen317
Copy link
Author

Seems like it is looking for a assets/html5.png which it can't find but I don't see any reference to this in your html. Is this the full html blov you are trying to render?

sorry , i try 2.2.1
but still throw exception

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants