Video plugin: External video source gives errors

Bugs will be moved here once resolved.

Post » Thu Nov 17, 2016 8:17 pm

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:
- In Chrome: Video plays as expected. But afterwards it throws this error: https://dl.dropboxusercontent.com/u/315826/video-error.PNG
- In Safari: Video plays as expected.

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.
B
14
S
2
Posts: 44
Reputation: 777

Post » Tue Dec 20, 2016 5:44 pm

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.
Scirra Founder
B
387
S
230
G
88
Posts: 24,251
Reputation: 192,464


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest