Playing a video from a third party site

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view

Playing a video from a third party site

We need to play a video from Somehow the folks in marketing got hooked up with them instead of Youtube. Now my job is harder... I was hoping to get a few pointers. :)

That is the link to the video. Can anyone advise me on how exactly to get it to play instead of a youtube video? I have been doing my shadowbox by doing everything in the Javascript onload rather than the tags throughout the page since I just need things to happen (or not happen) on page load.

I am using ASP.NET in Visual Studio. Here is an example of my Javascript with some inline code as well:
    <script type="text/javascript"> Shadowbox.init({ skipSetup: true }); window.onload = function () {{ content: '<%=mPopUpContent%>', player: '<%=mPopUpType%>', title: '<%=mPopUpHeaderMessage%>', width: '<%=mPopupWidth%>px', height: '<%=mPopupHeight%>px' }); } </script>

That works fine for youtube as well as html content. I cannot get it to work with that junk though. Any thoughts?

Thank you guys for any help!
Reply | Threaded
Open this post in threaded view

Re: Playing a video from a third party site

          player : 'iframe',
          type   : 'iframe',
          content: 'this_page.htm,

<!DOCTYPE html>
<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=8" />
<title>SU FPF - popup</title>
<style>body {background:#888; background:transparent; margin:0;padding:0;}</style></head>

<div id="video">
  [object width="853" height="480"] - forum bug, change as tag
    [embed - forum bug
      width="853" height="480"
      /] - forum bug

<script type="text/javascript"> var n, pole, a, v; pole = [ {src: ""}, {src: ""} ]; n = Math.floor(Math.random() * pole.length); s = pole[n].src + "&autoplay=1"; v = document.getElementById("video"); v.innerHTML = v.innerHTML // for IE innerHTML all in div .replace('src=""','src="'+s+'"') .replace('VALUE=""','value="'+s+'"'); // IE VALUE in uppercase </script></body>