Video plugin: External video source gives errors

0 favourites
  • 2 posts
From the Asset Store
Add SubRip (SRT) subtitles to your videos in Construct 3
  • Problem Description

    External URLs to .mp4-files either don't play or give javascript errors.

    Attach a Capx

    https://dl.dropboxusercontent.com/u/315826/video-error.capx

    Description of Capx

    Click "Load" to set H.264 source in the Video plugin to the external .mp4-file. Click "Play" to play video.

    Steps to Reproduce Bug

    • Click "Load"
    • Click "Play"

    Observed Result

    Desktop:

    • In IE11: Only the sound plays.
    • In Chrome: Nothing happens. The console logs this error: "video_plugin.js:113 Uncaught (in promise) DOMException: The element has no supported sources."
    • In Edge: Nothing happens

    Mobile:

    Expected Result

    The video should just play. The file sits on my own server with CORS headers

    Affected Browsers

    • Chrome - desktop: (YES)
    • Chrome - mobile: (YES)
    • Internet Explorer: (YES)
    • Microsoft Edge: (YES)
    • Safari - mobile: (NO)

    Operating System and Service Pack

    Desktop: Microsoft Windows 10 Home

    Mobile: iOS 10.1.1

    Construct 2 Version ID

    239.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • The server's response headers don't include Access-Control-Allow-Origin (despite what you say), so this is probably just a CORS issue. You also need at least one other codec to guarantee all browsers can play it. The JS error in your screenshot references a function which is definitely not part of C2, so I'd check your browser addons, they may be interfering. Closing as won't fix.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)