born2net
born2net

Reputation: 24943

how to serve a video using video.js coming from diff domain?

I have a site coming x.com and would like to serve a video from b.com using video.js

<div class="modal-body">
            <video id="videoIntro" class="centerElement vjs-big-play-centered video-js vjs-default-skin" controls
                   preload="auto" poster="videoIntro.png"
                   data-setup="{}">
                <source src="b.com/StudioLite.mp4" type='video/mp4'>
            </video>
        </div>

but I keep getting an security box error from browser: access denied

is it possible to serve a video from diff domain using video.js ?

Thanks for reading,

Sean.

Upvotes: 0

Views: 160

Answers (1)

misterben
misterben

Reputation: 7821

If it's a different domain you need an absolute path including the protocol.

<source src="http://b.com/StudioLite.mp4" type='video/mp4'>

Upvotes: 1

Related Questions