Skip to content

Video with file:// not working #386

Description

@Suplanus

I use the webview for displaying some media files, like JPG and MP3, which is working.
But on MP4 Its loading but not auto-play and the controls are greyed out. In Safari / Chrome the file-url and video works.

Image

var url = $"https://file-examples.com/storage/fe2323d803681a5439dac6a/2017/04/file_example_MP4_1280_10MG.mp4";
Browser.Address = url;

Activity

  1. Suplanus commented on May 7, 2025

    @Suplanus
    Author

    Log:

    [0507/081911.652694:VERBOSE1:pref_proxy_config_tracker_impl.cc(191)] 0x102b641b0: set chrome proxy config service to 0x102b65300
    [0507/081911.656255:VERBOSE1:webrtc_internals.cc(123)] Could not get the download directory.
    [0507/081911.656331:VERBOSE1:media_stream_manager.cc(1410)] MSM::InitializeMaybeAsync([this=0x12ae5f1f0])
    [0507/081911.656362:VERBOSE1:media_stream_manager.cc(1410)] MDM::MediaDevicesManager()
    [0507/081911.656379:VERBOSE1:media_stream_manager.cc(1410)] MSM::MediaStreamManager([this=0x12ae5f1f0]))
    [0507/081911.661029:VERBOSE1:device_event_log_impl.cc(194)] [08:19:11.660] Display: EVENT: screen_mac.mm:453 Displays updated, count: 2
    [0507/081911.661092:VERBOSE1:device_event_log_impl.cc(194)] [08:19:11.661] Display: EVENT: screen_mac.mm:455 Display[1] bounds=[0,0 1728x1117], workarea=[47,38 1681x1079], scale=2, rotation=0, panel_rotation=0 internal detected
    [0507/081911.661125:VERBOSE1:device_event_log_impl.cc(194)] [08:19:11.661] Display: EVENT: screen_mac.mm:455 Display[4] bounds=[-643,-1692 3008x1692], workarea=[-643,-1667 3008x1667], scale=2, rotation=0, panel_rotation=0 external detected
    [0507/081911.664910:VERBOSE1:component_installer.cc(428)] StartRegistration for Widevine Content Decryption Module
    [0507/081911.918857:VERBOSE1:component_installer.cc(499)] FinishRegistration for Widevine Content Decryption Module
    [0507/081911.918941:VERBOSE1:component_updater_service.cc(151)] CrxUpdateService starting up. First update attempt will take place in 60 s seconds. Next update attempt will take place in 18000 s seconds. 
    [0507/081911.932343:VERBOSE1:pref_proxy_config_tracker_impl.cc(191)] 0x12ae8ff00: set chrome proxy config service to 0x12ae910c0
    [0507/081911.933316:VERBOSE1:simple_index_file.cc(600)] Simple Cache Index is being restored from disk.
    [0507/081911.933548:VERBOSE1:simple_index_file.cc(600)] Simple Cache Index is being restored from disk.
    [0507/081912.003252:VERBOSE1:file_url_loader_factory.cc(453)] FileURLLoader::Start: file:///Users/moz/Documents/GitHub/ToyPadConsole/data/test/test.mp4
    [0507/081912.052541:VERBOSE1:simple_index_file.cc(600)] Simple Cache Index is being restored from disk.
    [0507/081912.079049:VERBOSE1:device_event_log_impl.cc(194)] [08:19:12.078] Display: EVENT: screen_mac.mm:453 Displays updated, count: 2
    [0507/081912.079126:VERBOSE1:device_event_log_impl.cc(194)] [08:19:12.079] Display: EVENT: screen_mac.mm:455 Display[1] bounds=[0,0 1728x1117], workarea=[46,38 1682x1079], scale=2, rotation=0, panel_rotation=0 internal detected
    [0507/081912.078871:INFO:cpu_info.cc(53)] Available number of cores: 10
    [0507/081912.079161:VERBOSE1:device_event_log_impl.cc(194)] [08:19:12.079] Display: EVENT: screen_mac.mm:455 Display[4] bounds=[-643,-1692 3008x1692], workarea=[-643,-1667 3008x1667], scale=2, rotation=0, panel_rotation=0 external detected
    [0507/081912.091150:INFO:cpu_info.cc(53)] Available number of cores: 10
    [0507/081912.107623:VERBOSE1:frame_impl.cc(471)] frame 21474836481 [5,1] connection request (reason=RENDER_FRAME_CREATED)
    [0507/081912.114251:VERBOSE1:script_context.cc(144)] Created context:
      extension id:           (none)
      frame:                  0x137001ed250
      URL:                    
      context_type:           WEB_PAGE
      effective extension id: (none)
      effective context type: WEB_PAGE
    [0507/081912.114481:VERBOSE1:script_context.cc(144)] Created context:
      extension id:           (none)
      frame:                  0x0
      URL:                    
      context_type:           UNSPECIFIED
      effective extension id: (none)
      effective context type: UNSPECIFIED
    [0507/081912.114560:VERBOSE1:dispatcher.cc(460)] Num tracked contexts: 1
    [0507/081912.153860:VERBOSE1:file_url_loader_factory.cc(453)] FileURLLoader::Start: file:///Users/moz/Documents/GitHub/ToyPadConsole/data/test/test.mp4
    [0507/081912.153946:VERBOSE1:frame_impl.cc(581)] frame 21474836481 [5,1] disconnected (reason=BROWSER_FRAME_DISCONNECT, current_state=CONNECTION_PENDING)
    [0507/081912.154318:VERBOSE1:frame_impl.cc(594)] frame 21474836481 [5,1] connection retry scheduled
    [0507/081913.154688:VERBOSE1:frame_impl.cc(471)] frame 21474836481 [5,1] connection request (reason=RETRY 1/3)
    [0507/081913.156164:VERBOSE1:frame_host_impl.cc(670)] frame 21474836481 [5,1] (main) reconnected
    
  2. zhuidong commented on Aug 18, 2025

    @zhuidong

    我也遇到同样的问题,你解决了吗

  3. baimindong commented on Sep 19, 2025

    @baimindong

    I encountered the same problem. Have you solved it?

  4. baimindong commented on Sep 25, 2025

    @baimindong

    我也遇到同样的问题,你解决了吗

    你解决了webview不能播放mp4问题了吗?

  5. ankeyliu commented on Jan 21, 2026

    @ankeyliu

    I have encountered the same problem: the MP4 video fails to play.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions