Welcome to the Invelos forums. Please read the forum rules before posting.

Read access to our public forums is open to everyone. To post messages, a free registration is required.

If you have an Invelos account, sign in to post.

    Invelos Forums->DVD Profiler: Layouts and Reports Page: 1  Previous   Next
I can't get videodetective video's to play in html video window
Author Message
DVD Profiler Unlimited RegistrantRandall_Lind
Registered: May 10, 2007
Posts: 418
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
I have <videos videodetective=#### /> and I see a video window but nothing plays. I have no issues with youtube.

/ -------- Configuration block - Start --------
// "Player name", "Notes field attribute", "Player URL", "Player link path", "Player embed path", "Player as link"
var vid = new Array(
  ["Google", "googlevideo=", "http://video.google.com/", "videoplay?docid=", "googleplayer.swf?docId=", false, []],
  ["Video Detective", "videodetective=", "http://www.videodetective.com/", "codes/player.swf?PublishedID=", "codes/player.swf?PublishedID=", false, []],
  ["YouTube", "youtube=", "http://www.youtube.com/", "watch?v=", "v/", false, []],
  ["@"]
);
var asl = false;
var wid = 300; // a width value dividable by 25
var der = false; // Display a 'No * Available' message

// Tags
var useTags = true;
var tagHierarchy = "9: Preferences/Video Loader/"
var tagAsLinks = tagHierarchy + "As links"; // Controlles asl from a tag
var tagVerboseOff = tagHierarchy + "Verbose off"; // Controlles der from a tag
// -------- Configuration block - End --------


I have every set right I believe but it has been a while since I used DVD profiler and I can't figure this out.

Thanks for any and all help.
DVD Profiler Unlimited Registrantxyrano
41215.reg 70320.urk
Registered: March 13, 2007
Sweden Posts: 646
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
It sounds as if the video you are trying to load isn't available anymore @ videodetective.com.
or
Maybe they've changed the url.
Please, confirm it exist @ videodetective.com and that the path is as in the script (http://www.videodetective.com/codes/player.swf?PublishedID=####).
 Last edited: by xyrano
DVD Profiler Unlimited RegistrantRandall_Lind
Registered: May 10, 2007
Posts: 418
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
it is there I can watch it on the site. maybe my code is messed up?


<html>
<head>
<style type="text/css">
<!--
* { color: white; font-family: verdana; font-size: 10pt; }
html, body { background-color: rgb(0, 0, 83); }
body { background-repeat: repeat-x; background-image:url($DPIMAGES.bgimage.jpg); }
h1.vid { text-align: center; }
a { font-size: 8pt; }
li { margin-left: 5pt; }
#code { clear: left; font-size: 6pt; text-align: right; margin-bottom: 15pt; }
.off { color: gray; }
.on { color: white; }
-->
</style>
<script type="text/javascript">
<!--
<DP NAME="HEADER_VARS" Language="JavaScript" Comments="True" IncludeCast="False" IncludeCrew="False">
/*
######## Video Loader ########
@title - Video Loader
@filename - VideoLoader_1.1.1.html
@version - 1.1.1
@date - 2007-06-07
@author - xyrano
@dependencies - DVD Profiler v3+, IE.

@1.1.1 update
- Added additional Tag support (for links)

@1.1 update
- Added options for unlimited players
- Added Tag support (for verbose)

@1.0.1 update
- No video bug fixed (Thanks RossRoy)

@1.0 inital release
*/
// -------- Configuration block - Start --------
// "Player name", "Notes field attribute", "Player URL", "Player link path", "Player embed path", "Player as link"
var vid = new Array(
  ["Google", "googlevideo=", "http://video.google.com/", "videoplay?docid=", "googleplayer.swf?docId=", false, []],
  ["Video Detective", "videodetective=", "http://www.videodetective.com/", "codes/player.swf?PublishedID=", "codes/player.swf?PublishedID=", false, []],
  ["YouTube", "youtube=", "http://www.youtube.com/", "watch?v=", "v/", false, []],
  ["@"]
);
var asl = false;
var wid = 300; // a width value dividable by 25
var der = false; // Display a 'No * Available' message

// Tags
var useTags = true;
var tagHierarchy = "9: Preferences/Video Loader/"
var tagAsLinks = tagHierarchy + "As links"; // Controlles asl from a tag
var tagVerboseOff = tagHierarchy + "Verbose off"; // Controlles der from a tag
// -------- Configuration block - End --------

var int = DP_Notes.indexOf("<videos ");
if (int != -1) {

  var d = 0;
  var hei = (wid / (d = (wid / 25))) * (d - 2);

  // Get code(s).
  // 1.1 updated
  var not = "";
  not = DP_Notes.substring(int, DP_Notes.indexOf("/>", int));
  not = not.replace("<videos ", "");
  if (not.indexOf("aslink") != -1) {
    not = not.replace("aslink", "");
    not = not.replace(/^\s+|\s+$/g, "");
    asl = true;
  }
  for (rowk in vid) {
    if (vid[rowk][0].length > 0 && not.indexOf(vid[rowk][1]) != -1) {
      var str = not.slice(not.indexOf(vid[rowk][1]), not.legnth);
      str = str.slice(0, cleanString(str, rowk));
      str = str.replace(vid[rowk][1], "");
      vid[rowk][6] = (str.indexOf(";") != -1) ? str.split(";"): str;
    }
  }

  // Tags
  // 1.1.1 updated
  if (useTags == true)  for (var i = 0;  i < DP_Tags.length;  i++) {
    if (tagAsLinks.length != 0 && DP_Tags[i].toLowerCase() == tagAsLinks.toLowerCase()) asl = true;
    if (tagVerboseOff.length != 0 && DP_Tags[i].toLowerCase() == tagVerboseOff.toLowerCase()) der = false;
  }
}

// 1.1 updated
function drawIt() {

  var html = "";
  var i = 0;
  for (row in vid) {
    if (vid[row][0].length > 1)
    if (vid[row][6] != undefined && vid[row][6] != "") {
      html += ((asl || vid[row][5]) ? vid[row][0] + ' video link': '') + selectFactory(row);
    } else {
      html += (der) ? 'No ' + vid[row][0] + ' videos Available<br />': '';
      i++;
    }
  }
if (i==3) {
    html = "to Watch a trailer click any link below<br /><br />"
    html += "<a target='_blank' href='http://www.youtube.com/results?search_query=" + DP_Title + "&search=Search'>YouTube</a><br />"
    html += "<a target='_blank' href='http://video.google.com/videosearch?q=" + DP_Title + "'>Google Video</a><br />"
    html += "<a target='_blank' href='http://www.videodetective.com/'>VideoDetective.com</a><br />";
  }

  document.getElementsByTagName('h1')[0].innerHTML = html;
}

// 1.1 updated
function selectFactory(row) {

  var obj = vid[row][6];
  var html = "";
  if (asl || vid[row][5]) {
    document.getElementsByTagName('h1')[0].className = 'on';
    if (typeof obj == "object") {
      html += "s: ";
      for (i in obj) html += '<li>' + link(vid[row][2] + vid[row][3], obj[i]) + '</li>';
    } else html += ": " + link(vid[row][2] + vid[row][3], obj);
    html += '<br />';
  } else {
    if (typeof obj == "object") for (i in obj) html += embedVideoFactory(vid[row][2] + vid[row][4], obj[i]);
    else html += embedVideoFactory(vid[row][2] +vid[row][4], obj);
  }
  return html;
}

// 1.1 updated
function embedVideoFactory(pth, str) {

  var obj = splitIt(str);
  var cde = getCode(obj);
  var eyt ='';
  eyt = '<span style="background-color: black;">';
  eyt += '<div style="background-color: black; width: ' + wid + '; height: ' + ((wid / 6) * 5) + ';">';
  eyt += '<object width="' + wid + '" height="' + ((wid / 6) * 5) + '">';
  eyt += '<param name="movie" value="' + pth + cde + '" />';
  eyt += '<param name="wmode" value="transparent" />';
  eyt += '<param name="autostart" value="false" />';
  eyt += '<embed src="' + pth + cde + '" type="application/x-shockwave-flash" autostart="false"';
  eyt += ' wmode="transparent" width="' + wid + '" height="' + ((wid / 6) * 5) + '"></embed>';
  eyt += '</object>';
  eyt += '</div>';
  eyt += '<div id="code" style="width: ' + wid + ';"';
  eyt += ' title="' + pth + cde + '"';
  eyt += ' onMouseOver="flashIt(this, true); return false;"';
  eyt += ' onMouseOut="flashIt(this, false); return false;"';
  eyt += ' class="off">' + ((typeof obj == "object") ? obj[0] + ': ': '') + cde + '</div>';
  eyt += '</span>';
  return eyt;
}

// 1.1 updated
function link(pth, str) {

  var obj = splitIt(str);
  var cde = getCode(obj);
  var lnk = '<a href="' + pth + cde + '" target="_new" onFocus="blur(this);"';
  if (typeof obj == "object") lnk += ' title="' + cde + '"';
  lnk += '>';
  lnk += (typeof obj == "object") ? obj[0]: obj;
  lnk += '</a>';
  return lnk;
}

// 1.1 new
function cleanString(str, r) {

  for (row in vid) if (vid[row][0].length > 0 && r != row && str.indexOf(vid[row][1]) != -1) return str.indexOf(vid[row][1]);
  return str.length;
}

// 1.1 new
function splitIt(str) { return (str.indexOf(vid[vid.length - 1][0]) != -1) ? str.split(vid[vid.length - 1][0]): str; }
function getCode(obj) { return ((typeof obj == "object") ? obj[1]: obj).replace(/^\s+|\s+$/g, ""); }

// 1.0
function flashIt(obj, bool) { obj.className = (bool) ? 'on': 'off'; }
//-->
</script>
</head>
<body onload="drawIt();" scroll="auto">
<h1 class="vid"></h1>
</body>
</html>
 Last edited: by Randall_Lind
DVD Profiler Unlimited Registrantxyrano
41215.reg 70320.urk
Registered: March 13, 2007
Sweden Posts: 646
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
Script looks good!

You said Youtube works so the script should be fine, maybe it something wrong with that particular video. What is the number? Does any other video work from this script to videodetective?

You know, it could be they do no longer allow this kind of access to thier videos! They might have a check to see if the request contain thier domain, in which case this script will not work anymore for/to them. Anyone actually using videodetective.com trailers and this script feel like helping out?
 Last edited: by xyrano
DVD Profiler Unlimited RegistrantRandall_Lind
Registered: May 10, 2007
Posts: 418
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
Try this Tomorrow never dies <videos videodetective=P00007305 />

The video window comes up and for a sec you see the play symbol then windows goes black. This happen on all movies I checked my flash in IE 7 and it works and I have the newest version.

I am using Windows Vista with SP 1 and thought it might be a firewall issue but, that makes no sense since Youtube trailers work.
 Last edited: by Randall_Lind
DVD Profiler Unlimited RegistrantStar Contributor?
?
Registered: March 14, 2007
Posts: 3,830
Posted:
PM this userVisit this user's homepageDirect link to this postReply with quote
standard plays fine overhere? what are you doing with this parameter in videodetective?
http://www.videodetective.com/titledetails.aspx?fmt=2&publishedid=7305
transfer rate and kind of player used.
2 = 56 kb (ad free) windows
3 = 100 kb windows
5 = 300 kb windows
18 = 450 kb flash
19 = 750 kb flash
21 = 750 kb windows
22 = 1500 kb  windows
20 = 1500 kb flash
= Flash
= Windows Media Player

in case you're running flash check this:
Flashplayer should have 9.0.124.0

I don't know if this has anything to do with it?
http://www.videodetective.com/default.aspx?PublishedID=7305  works
http://www.videodetective.com/default.aspx?PublishedID=P00007305 does not work
Sources for one or more of the changes and/or additions were not submitted. Please include the sources for your changes in the contribution notes, especially for cast and crew additions.
 Last edited: by ?
DVD Profiler Unlimited RegistrantRandall_Lind
Registered: May 10, 2007
Posts: 418
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
thanks only issue I have now is video is not center on the player window and the bottom part is black. However it is working.
 Last edited: by Randall_Lind
DVD Profiler Unlimited RegistrantStar Contributor?
?
Registered: March 14, 2007
Posts: 3,830
Posted:
PM this userVisit this user's homepageDirect link to this postReply with quote
normaly there is a button on the flashplayer but this works under  Sorry. This feature required Internet Explorer 6+ and Windows Media 9+.
I don't know if this can be of any help: (I'm way out of my expertise):
How to make a projector play full screen
Using FSCommand in Macromedia Flash projectors
Sources for one or more of the changes and/or additions were not submitted. Please include the sources for your changes in the contribution notes, especially for cast and crew additions.
 Last edited: by ?
    Invelos Forums->DVD Profiler: Layouts and Reports Page: 1  Previous   Next