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

Fujibob
We need to play a video from kulu.net. 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. :)

http://m62.kulu.net/view/1mhW5l44Vv6?embed=true&autoplay=true&width=960&height=540

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 () { Shadowbox.open({ 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 kulu.net 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

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



<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<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>

<body>
<div id="video">
  [object width="853" height="480"] - forum bug, change as tag
   
    [embed - forum bug
      id="bb"
      src=""
      type="application/x-shockwave-flash"
      width="853" height="480"
      /] - forum bug
  [/object]
</div>

<script type="text/javascript"> var n, pole, a, v; pole = [ {src: "http://www.youtube.com/v/S8zDFV9ATAc"}, {src: "http://www.youtube.com/v/Lre2wovqCwI"} ]; 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>
</html>