Serge Almazov
Serge Almazov

Reputation: 1

Videojs doesnt play video from another server in IE10/9/8

VideoJS plays video in IE10 from local file, but not plays from another place (VZAAR videohosting)

In Console displays: Video Error,[object Object]

Upvotes: 0

Views: 195

Answers (2)

Serge Almazov
Serge Almazov

Reputation: 1

It's server problem. Not octet-stream, but video/mp4

Upvotes: 0

JonP
JonP

Reputation: 31

Are you sure you're using the correct video source URL? For Vzaar hosted videos, the URL will be in the format of:

https://view.vzaar.com/{videoID}/video

where {videoID} is your video's ID number. You can also find this URL on Vzaar by viewing your videos list and selecting 'manage' for the video you're using. The correct URL is the 'video' URL under 'advanced video links'.

A simple example of working code using the CDN version of VideoJS (replace your own video's ID, height, and width values):

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8" />
  <title>VideoJS Vzaar playback test</title>
  <link href="http://vjs.zencdn.net/4.1/video-js.css" rel="stylesheet">
  <script src="http://vjs.zencdn.net/4.1/video.js"></script>
</head>
<body>
  <video id="testVideo"
    class="video-js vjs-default-skin"
    controls preload="auto"
    width="{videoWidth}" height="{videoHeight}"
    poster="https://view.vzaar.com/{videoID}/image">
    <source src="https://view.vzaar.com/{videoID}/video" type='video/mp4' />
  </video>
</body>

Upvotes: 3

Related Questions