Jump to content

MV + iFrame + Coordinates / Veoh + JW FLV Player


Graxeon

Recommended Posts

I'd like to first say thank you for taking your time to read this because it's quite a bit :P

 

I'll be explaining things bit by bit so read all of it to understand what my questions are.

 

First I will cover MegaVideo (MV) then I will talk about Veoh. MV is the only one I want the iFrame + Coordinates thing for. Veoh has to do with a different FLV player.

 

 

 

~~~~~~~MV~~~~~~~MV~~~~~~~MV~~~~~~~

 

 

Alright so I found these nifty little scripts (do note that I am asking these questions because my site will be about online game videos and not anime as some of the scripts from the site that I found them off of are...and most of the embed MV videos aren't working for people, have to go to the main site) :

 

This one is the one you view

 

<IFRAME vspace="0" hspace="0" allowtransparency="true" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" style="border:0px;" width="482" height="414" SRC="http://www.zomganime.com/mv.php?id=7ZFWAG96"></IFRAME><br />

 

And this is the "MV.php"

 

<html>
<head>
<META NAME='ROBOTS' CONTENT='NOINDEX, NOFOLLOW'>
</head>

<body onLoad='window.scrollTo(6,112)'>
<iframe src ='http://www.megavideo.com/?v=' width='1000' height='1000' vspace='0' hspace='0' allowtransparency='true' scrolling='no' marginwidth='0' marginheight='0' frameborder='0' style='border:0px;'></iframe>
</body>

</html>

 

So the "mv.php?id=7ZFWAG96" is meant to lead to "http://www.megavideo.com/?v=7ZFWAG96" and the rest of the code is telling it to go to certain coordinates (right 6 down 112, right?) and also have a height and width of 414 & 482.

 

SOOOO

 

How can I do the SAME thing except on my host?

**Note: I use free hosts like freewebs.com and hostbot.com. Hostbot supports PHP5, btw.

 

I tried to copy the code exactly as you see it here but it didn't work :(.

 

Any ideas on how to make that one work?

 

 

 

~~~~~~~Veoh~~~~~~~Veoh~~~~~~~Veoh~~~~~~~

 

First off I'd like to direct you to this website if you're not familiar with this player: http://www.jeroenwijering.com/?item=JW_FLV_Media_Player

 

 

I found this site that allows Veoh files to be played with an XML playlist (btw, you can change the "veoh_vXXXXXXXXXXXXXXX") : http://fedmich.com/videos/get/veoh_v6479498CNk9zshM

 

That would be like my "directory.html" file (found below).

 

Here is his XML playlist: http://fedmich.com/videos/playlist/veoh_v6479498CNk9zshM

 

You can find my XML playlist below, also.

 

 

I would like that same concept to be implemented into this JW FLV Player:

 

 

It uses (in my case) these files: swfobject.js, mediaplayer.swf, directory.html, test1.xml, test2.xml (etc).

 

Unless you need the JS / SWF file, I won't be putting them up as (I hope) it doesn't have to do with my question.

 

Here's the directory.html (what you view) :

 

 

<html>
<head>
<title>Test Title</title>

<style type="text/css">
BODY { PADDING-LEFT:0px; PADDING-RIGHT:0px; PADDING-TOP:0px; PADDING-BOTTOM:0px; MARGIN:0px; WIDTH:100%; HEIGHT:100%; 
FONT-SIZE:16px; 
FONT-FAMILY:Verdana,Helvetica,Arial; 
BACKGROUND-COLOR:#000000; 
COLOR:#000000; 
}
A:link {  COLOR: #0000ff; FONT-WEIGHT: normal; TEXT-DECORATION: underline }
A:visited { COLOR: #009999; FONT-WEIGHT: normal; TEXT-DECORATION: underline }
A:hover { COLOR: #00aa00; TEXT-DECORATION: none }

#back { POSITION: absolute; LEFT: 0px; TOP: 0px; WIDTH: 100%; HEIGHT: 100%; Z-INDEX:0}
#txt { POSITION: absolute; LEFT: 32px; TOP: 32px; Z-INDEX:1  }

#theForm { POSITION:absolute; LEFT:-1px; TOP:-1px; Z-INDEX:1  }
#placeholder { POSITION: absolute; LEFT:-1px; TOP:22px; Z-INDEX:1  }
</style>

<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
var theItem;
var selFile;


function loadPlay(file,idx) { 
theItem=idx;
selFile=file;
createPlayer(selFile);
setTimeout("play()",1100);
};

function play() {
sendEvent('playitem',theItem);
};

function sendEvent(typ,prm) {
thisMovie("thePlayerId").sendEvent(typ,prm);
};

function thisMovie(movieName) {
    if(navigator.appName.indexOf("Microsoft") != -1) {
	return window[movieName];
} else {
	return document[movieName];
}
};



function createPlayer(theFile) {
var s = new SWFObject("mediaplayer.swf","thePlayerId","480","372","7");
s.addParam("allowfullscreen","true");
s.addVariable("file",theFile);
s.addVariable("width","480");
s.addVariable("height","372");
s.addVariable("displayheight","272");
s.addVariable("overstretch","fit");

s.addVariable('frontcolor','000000'); 
s.addVariable('lightcolor','FFFFFF'); 
s.addVariable("showicons","false");
s.addVariable("autostart","false");
s.addVariable("thumbsinplaylist","true");
s.addVariable("enablejs","true");
s.addVariable("javascriptid","thePlayerId"); 

s.write("placeholder");
}
</script>


</head>


<SCRIPT LANGUAGE="JavaScript">
var message="Function Disabled!";
function clickIE() {if (document.all) {alert(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {alert(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false");
</SCRIPT>


<body onLoad="createPlayer(document.theForm.sel1.value)">


<form id="theForm" name="theForm">
  <select name="sel1" onchange="javascript:createPlayer(document.theForm.sel1.value)" style="width:480px"> 
        <option value="ac_flv_test1.xml">Test1</option> 
<option value="ac_flv_test2.xml">Test2</option> 
  </select>
</form>

<div id="placeholder"><a href="http://www.macromedia.com/go/getflashplayer">Get Flash</a> to see this player</div>
</body>
</html>

 

This is the XML file and how it works with direct links (the "location" tag is what the "mediaplay.swf" is playing) :

 

<?xml version="1.0" encoding="UTF-8"?>

<playlist version="1" xmlns="http://xspf.org/ns/0/">
<trackList>

	<track>
		<title>Line 2 on player desc</title>
		<creator>Line 1 on player desc</creator>
		<location>http://www.somesite.com/video/video1.flv</location>
	</track>

	<track>
		<title>Line 2 on player desc</title>
		<creator>Line 1 on player desc</creator>
		<location>http://www.somesite.com/video/video2.flv</location>
	</track>

</trackList>
</playlist>

 

 

So my question about Veoh is how do I get the "Fedmich.com" scripts to work in my scripts?

 

 

PLEASE help me, I've spent a lot of hours trying to do it myself and asking others :(

 

 

Thanks again ;D

Link to comment
Share on other sites

For the MV thing, how can I do the same thing that this person is doing here:

 

http://www.zomganime.com/macross-frontier-episode-23/

 

(check their source code for the MV iFrame + coordinates thing)

 

I tried copying the code as it is on that site but it didn't work.

 

 

As for the Veoh thing, I'd like to use Veoh urls like this one...

 

http://content.veoh.com/flash/p/6479498/63cad7cd650c63fc7045257d32f331d90cef100f.flv?ct=5fe7304b6d928600c4c04684b3e8cf3496fb61084c63eb4b

 

(this is the original url: http://www.veoh.com/videos/v6479498CNk9zshM )

 

...in my XML playlist so it WORKS on the JW Player. If I just stick that URL in the XML file, it does NOT work. However...I found someone that did manage to use Veoh urls in his JW Player:

 

http://fedmich.com/videos/get/veoh_v6479498CNk9zshM

 

And his XML file:

 

http://fedmich.com/videos/playlist/veoh_v6479498CNk9zshM

 

 

 

 

Does that clear it up? :-[

Link to comment
Share on other sites

I fail at explaining xD

 

Ok:

 

I'd like to do the same thing that this person is doing here with their MegaVideo video:

 

http://www.zomganime.com/macross-frontier-episode-23/

 

It's like using coordinates for it to scroll down to a certain place within an iframe that leads to a different website.

 

Does anyone know of / can make a script to do that?

 

As for the Veoh one:

 

I want to do the same thing that this guy is doing:

 

http://fedmich.com/videos/get/veoh_v6479498CNk9zshM

 

But...I want it implemented into my own JW FLV Player. (find codes on first post)

 

My JW FLV Player consists of these:

 

Video "box" (the thing you watch)

Playlist below the video "box"

 

Fedmich's JW FLV Player consists of these:

 

Video "box"

 

 

So what I'm saying is that:

 

I can get Veoh videos to play through a stand alone video "box" like Fedmich can...but I don't know why it doesn't work when I run it with a playlist (btw...the playlist needs an XML file to work).

 

 

Is that better? :(

 

 

EDIT:

 

I can draw a rough picture of what I want with Paint if you guys need it xD

Link to comment
Share on other sites

Yeah the MV one is something I need to be scripted. But...I gave somewhat of a code for it and thought you guys know how to fix it >.<

 

 

As for the Veoh one, I have all the code I was just wondering how to put it all together. If I just inserted a Veoh url (This one: http://content.veoh.com/flash/p/6479498/63cad7cd650c63fc7045257d32f331d90cef100f.flv?ct=5fe7304b6d928600c4c04684b3e8cf3496fb61084c63eb4b) into the XML file (my XML file)...it wouldn't work.

 

I wanted to know what was going wrong. My XML file takes URLs ending in .flv but not ones like the veoh link above :(.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.