May. 02, 2007AD
I want to use the flash video player for standalone web cd. How can I:
- detect when a video is finished (or stopped) to jump to a different page
- start a video directly in full screen mode
Can anyone help me with this?
May. 02, 2007JeroenW
There were some changes to the old-style fullscreen. Take a look at this page to see how to set it up for 3.7:
http://www.jeroenwijering.com/extras/streaming.html
May. 04, 2007AD
The real problem is that I am creating a standalone application, i.e. no webserver, just html files to run locally. As far as I understand in this case the javascript callbacks in flash are disabled. Do you have any suggestion for detecting the end of the video in this case? And is there any flashvars that I can set to start the video directly in fullscreen mode?
Thank you
May. 04, 2007andersen
@AD
please see this thread: http://www.jeroenwijering.com/?thread=4838
(you are the first to ask this question besides me - i have an unelegant solution now, but for an earlier version of the player, but it took me literally hundreds of experiments, i even bought the full licence in the hope that JeroenW would help me out on this last issue i had before beeing able to finish a charitable educational project)
May. 19, 2007Shiva
I post my question here though I'm stuck with actionscript rather than javascript, but I could find no closer subject...
I want to detect the end of the flv I'm playing thru flvplayer in a flash site...(yes I did it...)
I used to do it with the following script, while I still was hanging with flvPlayback... :
stop();
var surveil:Object = new Object();
surveil.stopped = function(information) {
if(information.state == "stopped") {
gotoAndPlay(4)}
};
ecranVideo.addEventListener("stopped", surveil);
ecranVideo is the name of the flvPlayback occurence, the script is on the same frame... it worked, but I can't manage to adapt this to flvplayer...
so far, I am stuck with :
stop()
var surveil:Object = new Object();
surveil.pause = function(information) {
if(information.state == "0") {
gotoAndPlay(4)}
};
playVideo.addEventListener("0", surveil);
playVideo is the name of the player occurence...
though I can read in the output pannel :
view: state: 3,undefined
controller: complete: undefined
model: pause: 0
model: pause: 0
view: time: 0,121.113
view: time: 0,121.113
view: time: 0,121.113
view: state: 0,undefined
view: state: 0,undefined
view: state: 0,undefined
model: pause: 0
It seems my script cannot detect the state changes...(I would be glad to detect either the complete or the pause state...)
Thanks in advance
Jun. 28, 2007Matt
I tried to make JS playlist commands that will work to control the playlist from another spot on the page, and it works in IE, but no go in Firefox. What am I doing wrong?
<p id="player"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this movie.</p>
<script type="text/javascript">
var so = new SWFObject('http://www.thelaseen.com/video/flvplayer.swf','mpl','320','320','8');
so.addParam("allowfullscreen","true");
so.addVariable("file","http://www.thelaseen.com/video/playlist.xml");
so.addVariable("enablejs","true");
so.addVariable("javascriptid","mpl");
so.addVariable("displayheight","240");
so.write('player');
var mmw = new SWFMacMouseWheel(so);
</script>
<h2>VIDEOS</h2>
<ul>
<li><a href="javascript:sendEvent('playitem',0)">Geisha House</a>.</li>
<li><a href="javascript:sendEvent('playitem',1)">Biscuit Lofts</a>.</li>
<li><a href="javascript:sendEvent('playitem',2)">Los Angeles Magazine</a>.</li>
<li><a href="javascript:sendEvent('playitem',3)">GenArt</a>.</li>
</ul>
</div>
Jun. 28, 2007Will
@Matt,
Assuming you have the FULL JavaScript code from this page [url=http://www.jeroenwijering.com/extras/javascript.html]JAVASCRIPT CONTROL EXAMPLES[/url], your code looks OK.
To avoid another problem with IE, you should add:
so.addVariable("width","320");
so.addVariable("height","320");
Jun. 28, 2007andersen
@Matt - works perfect in my IE7 and FF2 (both flash9 browser plugin)
Jun. 28, 2007Matt
Yeah, the IE works great, but it's Firefox that's not working.
thelaseen.com/video.htm
Will, I pulled the full javascript code from that page... I'll add those parameters.
Jun. 28, 2007andersen
@Matt - works perfect in my IE7 and FF2 (both flash9 browser plugin)
Jun. 28, 2007Matt
the player is working for me, but the controls on the left are getting me nowhere in FF. Oh well, FF users will have to suffer.
Jun. 28, 2007andersen
@Matt - those controls ARE working in my FF2!
maybe it is some kind of weird local problem with your FF?
i have uploaded a [url=http://home5.inet.tele.dk/nyboe/flash/mediaplayer/TheLASeen.htm]copy of your page here[/url]
(using a different playlist ofcourse - and the mediaplayer, but that should be of absolutely no consequence - ok, i also cleaned up your code a little bit, but no functional changes as such)
Jul. 03, 2007Rohan
@andersen,
i just cant seem to get the javascript functions to work .. can you please help...
example page : [url=http://konkan.tv/view/5e6c6e31313ccb0a5359]http://konkan.tv/view/5e6c6e31313ccb0a5359[/url]
under the video, you'd see a Flag As Offensive hyperlink... which basiclaly calls playpause.. and i just cant get this to work on IE...
Jul. 03, 2007Will
@Rohan,
See the answer in this thread [url=http://www.jeroenwijering.com/?thread=5332]Javascript getUpdate load & playpause problem ...[/url] and please don't cross-post.
Jul. 04, 2007Rohan Pinto
sorry Will, my bad...shall be wary of crossposting henceforth... and thanks a ton. it's fixed now :-)
Aug. 03, 2007Jökull
I'm loving the JW player and especially the JavaScript communication.
sendEvent is extremely useful but is there an equivalent that works the other way around sending a signal to a JavaScript function instead of JavaScript triggering an ActionScript function? I want this so I can update some HTML on certain events - namely when a song stops playing I want to get the <identifier> of the next song.
Will I need to modify the source files?
Is this the only way to trigger JavaScript in flash?
myBtn_btn.onRelease = function(){
getURL("javascript:alert('you clicked me')");
};
Thanks in advance.
Aug. 03, 2007andersen
@Jökull
if you look closer at the source of the [url=http://www.jeroenwijering.com/extras/javascript.html]javascript[/url] page, you will notice the function getUpdate
it gets called by the player when ever it changes state and whenever there are new position data!
also have a look at the source of the [url=http://home5.inet.tele.dk/nyboe/flash/mediaplayer/javascript.htm]modified javascript[/url] page from the [url=http://home5.inet.tele.dk/nyboe/flash/mediaplayer/]demos[/url] page, as well as the [url=http://home5.inet.tele.dk/nyboe/flash/mediaplayer/infodisplay.htm]infodisplay[/url] demo - and please see this thread too: [url=http://www.jeroenwijering.com/?thread=6245#msg31491]Displaying Playlist Data in HTML[/url]
Aug. 21, 2007beach fitness
thanks for the helpful info
Aug. 31, 2007FLV converter
check out my javascript test page for all the code:
if(typ == "item") { top.listview.location.href = "_if_playlist_item.php?item=" + pr1;}
Aug. 31, 2007FLV converter
thanks, that works great jeroen!
last questions, if i want to start playing the video again, which command should i use?
Sep. 07, 2007Geo
Nice player Jeroen. I have the same problem as godius (first post in this thread) and i believe the demo page will help solve it, but the link is not working.
http://www.jeroenwijering.com/embed/javascript.html
it gives an error message Webpage not found.
Sep. 07, 2007andersen
@Geo
the javascript page is now here: [url=http://www.jeroenwijering.com/extras/javascript.html]http://www.jeroenwijering.com/extras/javascript.html[/url]
theres a [url=http://home5.inet.tele.dk/nyboe/flash/mediaplayer/javascript.htm]modified version[/url] on the [url=http://home5.inet.tele.dk/nyboe/flash/mediaplayer/]demospage[/url] too...
Oct. 22, 2007HELP
HELP!!! Is it possible to run the java script offline? I can't find Lens.html after I have unzip the files... I keep on finding answer on this. Bookmarked this site and I'm going back here tomorrow after finishing my subject in shcool about new [url=http://www.networthmasters.com/]stock investing guides[/url]. Help me please. Thanks in advance!
Oct. 22, 2007Smith
Yes it is possible to run java script offline. Andersen knows everything about it. (b)
Oct. 23, 2007andersen
the installing script will run without problems offline -
to avoid the security bar on windows you can include the [url=http://msdn2.microsoft.com/en-us/library/ms537628.aspx]MOTW[/url]:
<!-- saved from url=(0014)about:internet -->
on windows you can falso rename the .html to .hta which will grant better security status to the player - making more (not all) of the [url=http://www.jeroenwijering.com/extras/javascript.html]javascript api[/url] useable offline...
Oct. 23, 2007andersen
@Smith/help - by now i suspect you are an elaborate linkspammer-
first a very small thank you for at least halfway figuring what the forum is about, not all do that...
second, please dont do it! -
this is a workplace, and bogus questions and/or anwers are a waste of time and confuses everybody!
there are many blogs out there, where you will disturb and confuse less and even be welcomed...
if you want your links here, please have the decency to spend enough time and effort to answer the real questions, you can do it without very much more effort and then your presence will be legit...
Jan. 10, 2008simangele
I downloaded the adobe vidoe player, but cant seem to play the videos. Can you advice as what to do after down load is complete.
Jan. 10, 2008simangele
I have downloaded the Adobe Video Player and every time it writes DOWNLOAD COMPLETE, but i cant play videos. Can you help as to what to do after download is complete.
Feb. 05, 2008flash101
How come I always get "Object doesn't support this property or method"? (I am using IE7.)
Feb. 05, 2008AJAX
@flash101,
Post your complete code or a link so someone can help you.
Feb. 05, 2008flash101
@AJAX
Thank for replying. Here is the html: (I've downloaded the swfobject.js, and is at the same place as the html file.)
<html><head><Title>Test</title>
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
function sendEvent(swf,typ,prm) {
thisMovie(swf).sendEvent(typ,prm);
};
function getUpdate(typ,pr1,pr2,swf) {
if(typ == 'state') { alert('the current state is: '+pr1'); }
if(typ == 'state' && pr1 == 3) { alert('Complete'); }
};
function thisMovie(swf) {
if(navigator.appName.indexOf("Microsoft") != -1) {
return window.href="http://www.google.com/" ;
} else {
return document.location = "http://www.google.com/" ;
}
};
</script>
</head>
<body bgcolor="#000000">
<div id="flashbanner" />
<script type="text/javascript">
var so = new SWFObject('test.swf','jstest','800','600','9');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addVariable('width','800');
so.addVariable('height','600');
// so.addVariable('file','/upload/dvdmenu.flv');
so.addVariable('javascriptid','jstest');
so.addVariable('enablejs','true');
so.write('flashbanner');
</script>
</body></html>
The swf: http://1.bigfilehost.com/en/file/3077/test-swf.html
===============
I tried the page at: http://home5.inet.tele.dk/nyboe/flash/mediaplayer/redirect.htm. It worked fine. But when I save the page and changed only the .swf file name, and commented out the video link (the video is embedded in the .swf). It stopped working, the page never got redirected.
Feb. 05, 2008AJAX
Somehow, a few extra codes crept into your page....
I don't have your files, so I had to use the standard mediaplayer.swf and video.flv.<html>
<head>
<Title>Test</title>
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
function getUpdate(typ, pr1, pr2, swf)
{
if(typ == 'state')
{
alert('the current state is: ' + pr1);
}
if(typ == 'state' && pr1 == 3)
{
alert('Complete');
// this is the redirect
document.location.href = 'http://www.google.com';
}
};
</script>
</head>
<body bgcolor="#000000">
<div id="flashbanner" />
<script type="text/javascript">
var so = new SWFObject('mediaplayer.swf', 'jstest', '800', '600', '9');
so.addParam('allowscriptaccess', 'always');
so.addParam('allowfullscreen', 'true');
so.addVariable('width', '800');
so.addVariable('height', '600');
so.addVariable('file', 'video.flv');
so.addVariable('javascriptid', 'jstest');
so.addVariable('enablejs', 'true');
so.write('flashbanner');
</script>
</body>
</html>
Feb. 05, 2008flash101
Thank. But it still not working for me. I am thinking that it may be the swf's problem. Is there anything I need to set when compiling the swf/fla files?
Here are direct links to the two files, total about 82kb: (I recomplied the video, it is not embeded in the swf now.)
http://beta.kcllcattcimex.com/test.fla
http://beta.kcllcattcimex.com/test.swf
Feb. 05, 2008flash101
And the flv:
http://beta.kcllcattcimex.com/test.flv
Feb. 05, 2008AJAX
Why are you re-compiling the SWF?
What have you changed in the SWF?
Your FLV doesn't have any metadata. This is what FLVMDI /k /l /x returns:<?xml version="1.0" encoding="UTF-8"?>
<root>
<duration>11.597</duration>
<lasttimestamp>11.582</lasttimestamp>
<lastkeyframetimestamp>11.582</lastkeyframetimestamp>
<videocodecid>4</videocodecid>
<audiocodecid>2</audiocodecid>
<audiodelay>0.038</audiodelay>
<canSeekToEnd>true</canSeekToEnd>
<width>720</width>
<height>480</height>
<videodatarate>400</videodatarate>
<audiodatarate>96</audiodatarate>
<framerate>15.1</framerate>
<creationdate>unknown</creationdate>
<metadatacreator>Manitu Group FLV MetaData Injector 2</metadatacreator>
<metadatadate>2/5/08 3:55:27 PM GMT-0800</metadatadate>
<videosize>664017</videosize>
<audiosize>146520</audiosize>
<datasize>516</datasize>
<filesize>811066</filesize>
</root>
This is what FLVMDI /k /l /x should return:<?xml version="1.0" encoding="UTF-8"?>
<root>
<duration>11.597</duration>
<lasttimestamp>11.582</lasttimestamp>
<lastkeyframetimestamp>11.582</lastkeyframetimestamp>
<videocodecid>4</videocodecid>
<audiocodecid>2</audiocodecid>
<audiodelay>0.038</audiodelay>
<canSeekToEnd>true</canSeekToEnd>
<width>720</width>
<height>480</height>
<videodatarate>400</videodatarate>
<audiodatarate>96</audiodatarate>
<framerate>15.1</framerate>
<creationdate>unknown</creationdate>
<metadatacreator>Manitu Group FLV MetaData Injector 2</metadatacreator>
<metadatadate>2/5/08 3:56:53 PM GMT-0800</metadatadate>
<videosize>664017</videosize>
<audiosize>146520</audiosize>
<datasize>689</datasize>
<filesize>811239</filesize>
<keyframes>
<filepositions>
<pos>1324</pos>
<pos>159149</pos>
<pos>292141</pos>
<pos>416934</pos>
<pos>541697</pos>
<pos>671971</pos>
<pos>785929</pos>
</filepositions>
<times>
<time>0.038</time>
<time>2.006</time>
<time>4.008</time>
<time>6.01</time>
<time>8.012</time>
<time>10.014</time>
<time>11.582</time>
</times>
</keyframes>
</root>
Feb. 05, 2008flash101
I redo everything again, still no luck. Hope that you can go throught this with me. Very appriciated.
I embedded the video into the swf, but it didn't work. So, I reconvert it using the "Progress download from a web" option, to match the example here.
I recreated the FLV again. Here is what I did:
1. New a Flash File (ActionScript 3.0) in Flash CS3.
2. "Import to Stage" the video. Change the keyframe rate to 30 in "Video" tab. (I did not enter the keyframe rate in the previous
3. Publish the swf.
This time I got almost identical result from the FLVMDI at you posted above.
Here are the files:
http://beta.kcllcattcimex.com/test.swf (From Flash CS3)
http://beta.kcllcattcimex.com/test.flv (From Flash CS3)
http://beta.kcllcattcimex.com/test.xml (The file generated by the FLVMDI)
http://beta.kcllcattcimex.com/test.html
http://beta.kcllcattcimex.com/swfobject.js
The original video:
http://beta.kcllcattcimex.com/test.wmv (From Windows Vista's sample video, Lake.wmv.)
Feb. 14, 2008JD
I just want to know if I want my script to be able to detect a broken video connection. How can it be done?
JD
Feb. 14, 2008killerCSS
Depending on what script language you are using, use Google to search for the proper method to check a link in that language. Once you have found that method, add it to your script.
For instance, for PHP, Google "PHP check link".
First search result: "Very simple link check"
Mar. 04, 2008jw
Hi, can anyone advise how to solve this problem.
'SWFObject' is undefined.
Code:0
Line: 176
Char:3
URL: http://www.mathletics.com.au/
Mar. 05, 2008Murphy66
Does anyone know how to set up a movie file to redirect to another page within the website it is hosted on
I am looking to send visitors to another page at the end of the movie is this posible
I know that I can use html to redirect from the host page but I am unsure of the diferent load times on clients browsers
heres hopeing
Mar. 05, 2008AJAX
Basically, you would monitor the player's state and when it reported state=3 (completed), you would load the new page. <script type='text/javascript'>
function getUpdate(typ, pr1, pr2, pid)
{
if(typ == 'state')
{
if(pr1 == 3)
{
// drop out of fullscreen
// this.window.focus();
// load a new page
window.location = 'http://my.domain.com/path/newpage.html';
}
}
};
function thisMovie(movieName)
{
if(navigator.appName.indexOf('Microsoft') != -1)
{
return window[movieName];
}
else
{
return document[movieName];
}
};
</script>
Enable the JavaScript API in the player code:so.addVariable('enablejs', 'true');
so.addVariable('javascriptid', 'mpl');
There are many other things you can do instead of window.location, like open popups, load into a new page instead of the existing page, load an iframe, and so on. Google for 'javascript load page', 'javascript open window', etc.
Mar. 17, 2008Raj
I am getting this error: Object does not support this property or methid with this line while doing playpause
thisMovie(swf).sendEvent(typ,prm);
Here is the code
<html>
<head>
<script type="text/javascript">
function sendEvent(swf,typ,prm) {
thisMovie(swf).sendEvent(typ,prm);
};
//function getUpdate(typ,pr1,pr2,swf) {};
function thisMovie(swf) {
if(navigator.appName.indexOf("Microsoft") != -1) {
return window[swf];
} else {
return document[swf];
}
};
</script>
<script type="text/javascript" src="http://localhost:8080/communicog/flv/swfobject.js"></script>
</head>
<body>
<div id="player">
<a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">Get the Flash Plugin</a>
to see this Flash Player.
</div>
<script type="text/javascript">
var so = new SWFObject('http://localhost:8080/communicog/flv/mediaplayer.swf','jstest','400','220','9');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addVariable('width','400');
so.addVariable('height','220');
so.addVariable('file','http://localhost:8080/communicog/flv/afraid.flv');
so.addVariable('javascriptid','jstest');
so.addVariable('enablejs','true');
so.write('player');
</script>
<a href="javascript:sendEvent('jstest','playpause');">pause/resume the movie</a>
</body>
</html>
Thanks for any HELP
Mar. 17, 2008andersen
@Raj - your code is ok when i test it! - but the javascript api only works online!
from the [url=http://www.jeroenwijering.com/?item=Javascript_interaction]Javascript Interaction[/url] page:
Note that javascript interaction only work for the Flash Plugin 8+ and only online, due to [url=http://www.adobe.com/devnet/flash/articles/external_interface_02.html]security restrictions[/url].
Mar. 18, 2008Raj
Thnks for u r help, u r right javascript works only online, what i did wrong was my files was not in my website ,now i kept it in my webside that is working fine in IE and FF.
Thanks again for u HELP
Mar. 26, 2008Raj
Sir, the below code is in a .js file
function fun(){
var so = new SWFObject('http://localhost:8080/communicog/flv/mediaplayer.swf','jstest','400','220','9');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addVariable('width','400');
so.addVariable('height','220');
so.addVariable('file','http://localhost:8080/communicog/flv/afraid.flv');
so.addVariable('javascriptid','jstest');
so.addVariable('enablejs','true');
so.write('player');
}
now my question is,whenever i call the above function ,the function should return the function code ,i.e the below code as a string
var so = new SWFObject('http://localhost:8080/communicog/flv/mediaplayer.swf','jstest','400','220','9');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addVariable('width','400');
so.addVariable('height','220');
so.addVariable('file','http://localhost:8080/communicog/flv/afraid.flv');
so.addVariable('javascriptid','jstest');
so.addVariable('enablejs','true');
so.write('player');
HOw to do this.
Thanks in advance.
Mar. 26, 2008andersen
@Raj - the following code will return a string with the swfobject code: function fun(){ you can try it like this:
var tmpstr = "var so = new SWFObject('http://localhost:8080/communicog/flv/mediaplayer.swf','jstest','400','220','9');"
tmpstr += "so.addParam('allowscriptaccess','always');"
tmpstr += "so.addParam('allowfullscreen','true');"
tmpstr += "so.addVariable('width','400');"
tmpstr += "so.addVariable('height','220');"
tmpstr += "so.addVariable('file','http://localhost:8080/communicog/flv/afraid.flv');"
tmpstr += "so.addVariable('javascriptid','jstest');"
tmpstr += "so.addVariable('enablejs','true');"
tmpstr += "so.write('player');"
return(tmpstr);
}alert(fun());
Mar. 26, 2008Raj
Thanks for u help and i have one more question,plz consider
My question is..when u cal the above function fun() we wil get javascript as sting after getting that javascript i want to execute that javascript for flv ,i am doing as below.
<html>
<head>
<script type="text/javascript">
function fun(){
var obj="";
obj += "<script>";
obj += "var s1 = new SWFObject('mediaplayer.swf', 'playlist', '350', '250', '9');";
obj += "s1.addParam('allowfullscreen', 'true');";
obj += "s1.addParam('allowscriptaccess','always');";
obj += "s1.addVariable('width', '350');";
obj += "s1.addVariable('height', '250');";
obj += "s1.addVariable('displayheight', '230');";
obj += "s1.addVariable('file', '20051210-w50s.flv');";
obj += "s1.addVariable('javascriptid','playlist');";
obj += "s1.addVariable('overstretch', 'false');";
obj += "s1.addVariable('showdigits', 'true');";
obj += "s1.addVariable('autostart', 'true');";
obj += "s1.addVariable('shuffle', 'false');";
obj += "s1.addVariable('repeat', 'list');";
obj += "s1.addVariable('showicons', 'true');";
obj += "s1.addVariable('thumbsinplaylist', 'true');";
obj += "s1.addVariable('logo', 'http://my.domain.com/path/logo.png');";
obj += "s1.addVariable('backcolor', '0xFFFFFF');";
obj += "s1.addVariable('frontcolor', '0x404040');";
obj += "s1.addVariable('lightcolor', '0x808080');";
obj += "s1.addVariable('screencolor', '0x000000');";
obj += "s1.addVariable('enablejs','true');";
obj += "s1.write('player');";
obj += "</scr"
obj += "ipt>)";
return obj;
}
function ftwo(){
var obj1=fun();
alert(obj1);
//document.write('<scr' + 'ipt');
// document.write(' language="Javascript1.2">'+obj1+'</scr' + 'ipt>');
document.getElementById('player').innerHTML=obj1;
}
</script>
</head>
<body>
<table id="tid" border=1>
<tr>
<td id="player">
<a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">Get the Flash Plugin</a>
to see this Flash Player.
</td>
</tr>
</table>
<button onclick="ftwo()">Flv</button>
</body>
</html>
Here my intentsion is ,after clicking on the button flash video has to come,but i am not getting that,
Please see..
Thanks once again for u r help
Mar. 26, 2008Raj
Why i have asked this because, in my application i have to get the media code dynamically and make this code as innerHTML of the <td>.
Before ,for media(without flashvideo) we used <OBJECT> and <EMBED> tags,so after getting these <EMBED> ,<OBJECT> code dynamically, we are making these code as innerHTML of <td>,so it is working fine,now i want to get the above javascript and i want to make this javascript as innerHTML ,but how this javascript will be executed as innerHTML of <td>.
Thank in advance,
Mar. 26, 2008Raj
in the above code i have missed below line
<script type="text/javascript" src="swfobject.js"></script>
plz include that
Thanks
Mar. 26, 2008andersen
please see the (source of the) [url=http://home5.inet.tele.dk/nyboe/flash/mediaplayer/linkplaylist.htm]linkplaylist[/url] and [url=http://home5.inet.tele.dk/nyboe/flash/mediaplayer/playlistlinks.htm]playlistlinks[/url] demos (from the [url=http://home5.inet.tele.dk/nyboe/flash/mediaplayer/]demopage[/url]) and maybe some of the methods of the [url=http://home5.inet.tele.dk/nyboe/flash/mediaplayer/autostartspecific.htm]autostartspecific[/url], [url=http://home5.inet.tele.dk/nyboe/flash/mediaplayer/mutexdaisychain.htm]mutexdaisychain[/url] and [url=http://home5.inet.tele.dk/nyboe/flash/mediaplayer/loadandplay.htm]loadandplay[/url] demos could be of interest in your case too...
Mar. 28, 2008Raj
Thank u sir,one more question here
After playing flv,i am getting the innerHTML of that fiv and inserting that fiv innerHTML in to div,but after inserting that fiv innerHTML in to ,it is not playing,here my code
<html>
<head>
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
function fun1()
{
alert(document.getElementById('playlist').outerHTML);
document.getElementById('dv').outerHTML=document.getElementById('playlist').outerHTML
}
</script>
</head>
<body>
<table id="tid" border=1>
<tr>
<td id=player1 >
<a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">Get the Flash Plugin</a>
to see this Flash Player.
</td>
</tr>
</table>
<script type="text/javascript">
var s1 = new SWFObject("mediaplayer.swf", 'playlist', '350', '250', '9');
s1.addParam('allowfullscreen', 'true');
s1.addParam("allowscriptaccess","always");
s1.addVariable('width', '350');
s1.addVariable('height', '250');
s1.addVariable('displayheight', '230');
s1.addVariable('file', 'afraid.flv');
s1.addVariable('javascriptid','playlist');
s1.addVariable('overstretch', 'false'); // expands to fit h or v "false" -will stretch them to fit disproportionally to fit both height and width
s1.addVariable('showdigits', 'true');
s1.addVariable('autostart', 'true');
s1.addVariable('shuffle', 'false');
s1.addVariable('repeat', 'list');
s1.addVariable('showicons', 'true');
s1.addVariable('thumbsinplaylist', 'true');
s1.addVariable('logo', 'http://my.domain.com/path/logo.png');
s1.addVariable('backcolor', '0xFFFFFF'); // face of buttons
s1.addVariable('frontcolor', '0x404040'); // button symbols & playlist text
s1.addVariable('lightcolor', '0x808080'); // highlighted playlist item
s1.addVariable('screencolor', '0x000000'); // screen background color
s1.addVariable('enablejs','true')
s1.write('player1');
</script>
<div id="dv">here innerHTML of the flv will be inserted by clicking on Flv1 button</div>
<button onclick="fun1()">Flv1</button>
</body>
</html>
plz excute above code,after clicking on the button the innerHTML of fiv will be inserted in to div,
now i want to play that fiv which is inserted in to div, how to do that.
Thanks in advance..
Mar. 28, 2008andersen
@Raj - unfortunately you can not do what you want this way - you need to create/start the player as function calls - there is just no way to transfer the program pointer to the player when you insert the code like you do - please see source code of the links from previous posting for working examples...
Mar. 29, 2008Raj
Thank u sir,
In my application i have editor,after uploading the flv file,it is playing in editor but , after uploading this flv i need to save this flv and after saving this flv , this flv should be played in main page, here the problem is after uploading flv in editor ,the innerHTML of that flv is changed like
<OBJECT
id=newmedia1206696564671hour14minute59second24date28month2year2008Milli671
height=250 width=350 classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000><PARAM NAME="_cx" VALUE="9260"><PARAM NAME="_cy" VALUE="6615"><PARAM NAME="FlashVars" VALUE=""><PARAM NAME="Movie" VALUE="mediaplayer.swf"><PARAM NAME="Src" VALUE="mediaplayer.swf"><PARAM NAME="WMode" VALUE="Window"><PARAM NAME="Play" VALUE="0"><PARAM NAME="Loop" VALUE="-1"><PARAM NAME="Quality" VALUE="High"><PARAM NAME="SAlign" VALUE="LT"><PARAM NAME="Menu" VALUE="-1"><PARAM NAME="Base" VALUE=""><PARAM NAME="AllowScriptAccess" VALUE="always"><PARAM NAME="Scale" VALUE="NoScale"><PARAM NAME="DeviceFont" VALUE="0"><PARAM NAME="EmbedMovie" VALUE="0"><PARAM NAME="BGColor" VALUE=""><PARAM NAME="SWRemote" VALUE=""><PARAM NAME="MovieData" VALUE=""><PARAM NAME="SeamlessTabbing" VALUE="1"><PARAM NAME="Profile" VALUE="0"><PARAM NAME="ProfileAddress" VALUE=""><PARAM NAME="ProfilePort" VALUE="0"><PARAM NAME="AllowNetworking" VALUE="all"><PARAM NAME="AllowFullScreen" VALUE="true">
</OBJECT>
,so i am saving after innerHTML of flv has been changed to <OBJECT> tag like above , so it is not getting played.
Now i want to play the flv after saving also ,what i have to do for this.
In the above <OBJECT> tah .flv file is not their ,why so ?
Please give me clear clarification.
waiting for u r response sir.
Thaks for u r previous respose andersen.
Mar. 29, 2008andersen
@Raj - i am afraid you will have to rethink your project !
i honestly dont know any way to achive what you want without embedding the player using swfobject...
please see the methods used in the links in previous posting - and try some experiments with them to get inspiration for alternative ways to do your project...
Mar. 31, 2008Raj
Ok, thank u sir, i wil try as u said
Apr. 01, 2008Raj
Sir,here one question
while playing FLV using this javascript and swfobject, if we get the innerHTML of that FLV we will not get .flv file but we will get meadiaplayer.swf in innerHTML, what i have to do to get .flv file name in the innerHTML.
Thank u sir
Apr. 01, 2008andersen
@Raj - one way is to transfer the filename as argument in the function call - please see the source of the [url=http://home5.inet.tele.dk/nyboe/flash/mediaplayer/linkplaylist.htm]linkplaylist[/url] demo
Apr. 01, 2008Raj
Thank u sir for u r response,
if suppose there r two pages called pageA and pageB, when i click on the pageA it will go to pageB.
I want to play FLV in both pages.
Suppose i have wrote a code to play the FLV by calling createplayer() function in pageA and it is played. and if i click on pageA , to play the FLV in pageB ,whethe i have to cal again createplayer() function or not.
i'e to play the FLV in different pages , for each page whether i have to create a FLV player(calling createplayer() function) or not.
Is there any way to get the .flv file name which is included in javascript(s1.addVariable('file', 'afraid.flv');) using javascript.
please excuse me for these questions,
I am little bit not understanding , that is y i am asking again and again.
Thank u for help.
Apr. 01, 2008andersen
for each page whether i have to create a FLV player(calling createplayer() function) or not. yes, you need to create a player for each page you want to play a video on
here is some example code for a whole page showing how to transfer values as arguments to a function and get the value also:
(please try some experiments with it, and compare the code with the code of the [url=http://home5.inet.tele.dk/nyboe/flash/mediaplayer/linkplaylist.htm]linkplaylist[/url] demo) <html>
<!-- saved from url=(0014)about:internet -->
<head>
<script type="text/javascript">
function createplayer(theFile, go) {
if (go) { alert("the filename is: " + theFile); }
}
</script>
</head>
<body>
<a href="javascript:createplayer('video1.flv', true)">video1</a><br>
<a href="javascript:createplayer('video2.flv', true)">video2</a>
</body>
</html>
Apr. 02, 2008Raj
Thank u for u r help sir,
if u write like below we wil get .flv file name
function createplayer(theFile, go) {
if (go) { alert("the filename is: " + theFile); }
}
Here i do not want to alert .flv file name while creating the player.
But ,after creating player ,by clicking on any button i want to get .flv file name .
Is there any way to get the .flv file name like that , please let me know
Thank u sir.
Apr. 02, 2008andersen
something like this?
please note: to try the following code you need swfobject.js - mediaplayer.swf and three videos: video1.flv etc. in the folder<html>
<!-- saved from url=(0014)about:internet -->
<head>
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
var currentFileName;
function showName() {
document.getElementById("nameplaceholder").innerHTML = 'the filename is: ' + currentFileName;
}
function hideName() {
document.getElementById("nameplaceholder").innerHTML = '';
}
function createplayer(theFile, go) {
currentFileName = theFile;
var s = new SWFObject("mediaplayer.swf","playerID","400","245","7");
s.addParam("allowfullscreen","true");
s.addVariable("file", theFile);
s.addVariable("width","400");
s.addVariable("height","245");
s.addVariable("displayheight","225");
s.addVariable("overstretch","fit");
if (go) { s.addVariable("autostart","true"); }
s.write("placeholder");
}
</script>
</head>
<body onLoad="createplayer('video.flv', false)">
<a href="javascript:createplayer('video1.flv', true)">video1</a><br>
<a href="javascript:createplayer('video2.flv', true)">video2</a><br>
<a href="javascript:createplayer('video3.flv', true)">video3</a><br>
<br>
<div id="placeholder">
<a href='http://www.macromedia.com/go/getflashplayer'>get flash</a> to see this player.
</div>
<br>
<a href="javascript:showName()">show name</a> -
<a href="javascript:hideName()">hide name</a><br>
<a href="javascript:alert('the filename is: ' + currentFileName)">alert name</a><br>
<br>
<div id="nameplaceholder"></div>
</body>
</html>
Apr. 02, 2008Raj
Ok ,thank u sir, it is simply good..
But ,after creating the player, can u get the flashvar values using javascript ?
Apr. 02, 2008andersen
yes, two methods:
you can transfer them explicitely - like youve seen with the filename already - here is one more:function createplayer(theFile, theImage, go) { or - use the [url=http://www.jeroenwijering.com/?item=Javascript_interaction]javascript api[/url] please see the (source of the) [url=http://home5.inet.tele.dk/nyboe/flash/mediaplayer/javascript.htm]javascript[/url] demo (linked from the [url=http://home5.inet.tele.dk/nyboe/flash/mediaplayer/]demopage[/url]) for example code for this..
currentFileName = theFile;
currentImage = theImage;
...
<a href="javascript:createplayer('video1.flv', 'image1.jpg', true)">video1</a><br>
<a href="javascript:alert('the image is: ' + currentImage)">alert image</a><br>
Apr. 02, 2008Raj
Thank u sir,
suppose i will not trasfer the falshvar values explicitely , i will hardcode flashvar value.
now can i get the flashvar values using javascript.
Thanku for quick response.
Apr. 02, 2008Raj
Thank u sir, please please let me know about this one also
what is the difference between below code formant
<script type="text/javascript" src="http://www.jeroenwijering.com/embed/swfobject.js"></script> <div id="player">This text will
be replaced</div> <script type="text/javascript">var so = new
SWFObject('http://www.jeroenwijering.com/embed/mediaplayer.swf','mpl','470','255','8');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');so.addVariable('height','255');
so.addVariable('width','470');so.addVariable('file','afraid.flv');
so.addVariable('id','playlist');so.write('player');
</script>
and
<embedsrc="http://www.jeroenwijering.com/embed/mediaplayer.swf"width="470"height="255"allowscriptaccess="always"allowfullscreen="true"flashvars="height=255&width=470&file=afraid.flv&id=playlist"/>
shall i use 2nd menthod instead of 1st method, if i use 2nd method, wil i get any problems.
Thank u for helping me a lot.
Apr. 02, 2008andersen
the first - the swfobject method - removes the "click to activate" annoyance in Internet Explorer
it sets the correct name/id for using javascript and is less error prone...
the second - the naked embed code - should only be used when forced to do so by page restrictions -
its more difficult to edit, and wont work with javascript in IE6 (needs the object code also i think)
please see the tutorial page about [url=http://www.jeroenwijering.com/?item=Embedding_Flash]Embedding Flash[/url] and the [url=http://www.jeroenwijering.com/?page=wizard]wizard[/url]
(note both types of code below the wizard - dont mix them!)
Apr. 03, 2008Raj
Thank u sir,
by using swfobject, suppose i will not trasfer the falshvar values explicitely , i will hardcode flashvar value.
now can i get the flashvar values using javascript.
Thanku for quick response.
Apr. 03, 2008Raj
Sir,
i am getting a error "object does not support this property or method" while calling the loadFile() function to load .flv file .what might be the problem please
function loadFile(obj,flv) {
thisMovie(flv).loadFile(obj);
};
function thisMovie(swf) {
if(navigator.appName.indexOf("Microsoft") != -1) {
return window[swf];
} else {
return document[swf];
}
};
Apr. 03, 2008andersen
make sure you test online! - the javascript api only works online!
also make sure the name/id is correct everywhere and that javascript is enabled: <div id="placeholder">This text will be replaced</div>
<script type="text/javascript">
var so = new SWFObject('mediaplayer.swf','playerID2','470','255','8');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addVariable('file','video.flv');
so.addVariable('height','255');
so.addVariable('width','470');
so.addVariable('enablejs','true');
so.addVariable('javascriptid','playerID2');
so.write('placeholder');
</script>
Apr. 03, 2008Raj
Thank u sir ,but what abt this one
by using swfobject, suppose i will not trasfer the falshvar values explicitely , i will hardcode flashvar value.
now can i get the flashvar values using javascript.
Thanku for quick response.
Apr. 03, 2008andersen
using swfobject you can both hardcode flashvars and/or transfer values to set the flashvars if you use a function -
and accordingly both reading the transferred values is possible as well as reading the flashvars using the [url=http://home5.inet.tele.dk/nyboe/flash/mediaplayer/javascript.htm]javascript api[/url]
all the methods can be combined if needed...
please see code of earlier posting beginning "something like this?"
in the [url=http://home5.inet.tele.dk/nyboe/flash/mediaplayer/javascript.htm]javascript[/url] demo is shown how to get the values of the flashvars as well as mediadata back from the player...
but i have the feeling we go in circles here - if you could make a clear description of the functionality you want to achieve, maybe we can come up with a simple solution...
Apr. 03, 2008Ra
thank u sir,
we have editor in my application, now in that editor i have to play FLV , by using the swfobject i am displaying the FLV and it is working fine. In that editor i have the button called viewsource button,by clicking on that viewsource button i can able to see the html code of the editor content, now after displaying the FLV in the editor, i am seeing the the html code of the FLV by clicking on the viewsource button , it look like as below
<OBJECT
id=newmedia1207207061187hour12minute47second41date3month3year2008Milli187
height=250 width=350 classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000><PARAM NAME="_cx" VALUE="9260"><PARAM NAME="_cy" VALUE="6615"><PARAM NAME="FlashVars" VALUE=""><PARAM NAME="Movie" VALUE="/communicog/htmlarea/mediaplayer.swf"><PARAM NAME="Src" VALUE="/communicog/htmlarea/mediaplayer.swf"><PARAM NAME="WMode" VALUE="Window"><PARAM NAME="Play" VALUE="0"><PARAM NAME="Loop" VALUE="-1"><PARAM NAME="Quality" VALUE="High"><PARAM NAME="SAlign" VALUE="LT"><PARAM NAME="Menu" VALUE="-1"><PARAM NAME="Base" VALUE=""><PARAM NAME="AllowScriptAccess" VALUE="always"><PARAM NAME="Scale" VALUE="NoScale"><PARAM NAME="DeviceFont" VALUE="0"><PARAM NAME="EmbedMovie" VALUE="0"><PARAM NAME="BGColor" VALUE=""><PARAM NAME="SWRemote" VALUE=""><PARAM NAME="MovieData" VALUE=""><PARAM NAME="SeamlessTabbing" VALUE="1"><PARAM NAME="Profile" VALUE="0"><PARAM NAME="ProfileAddress" VALUE=""><PARAM NAME="ProfilePort" VALUE="0"><PARAM NAME="AllowNetworking" VALUE="all"><PARAM NAME="AllowFullScreen" VALUE="true"></OBJECT>
i'e internally FLV code of the javascript(swfobject,meadiaplayer.swf) is changed like above <object code.
now in the same editor page we have another button called as SAVE button, by clicking on the SAVE button whatever the content in the editor that should be appear in the main page.
After click on the SAVE button the html(i told when u click on the viewsource button ,the html for the content in the editor will come , that html) will be stored in one page and that page is linked to main page.
Now after displaying the FLV in the editor the code for the FLV changed to <object like this, and after clicking on the SAVE button this FLV code(<object) is saved ,and the this changed <object code is executin in the main page and in that main page FLV is not played .
So to play the FLV in the main page aslo what i have to do.
if we need further clarification ,plz let me know
PLEASE TELL ME SOLUTION
THANK U SIR
Apr. 03, 2008Raj
thank u sir,
we have editor in my application, now in that editor i have to play FLV , by using the swfobject i am displaying the FLV and it is working fine. In that editor i have the button called viewsource button,by clicking on that viewsource button i can able to see the html code of the editor content, now after displaying the FLV in the editor, i am seeing the the html code of the FLV by clicking on the viewsource button , it look like as below
<OBJECT
id=newmedia1207207061187hour12minute47second41date3month3year2008Milli187
height=250 width=350 classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000><PARAM NAME="_cx" VALUE="9260"><PARAM NAME="_cy" VALUE="6615"><PARAM NAME="FlashVars" VALUE=""><PARAM NAME="Movie" VALUE="/communicog/htmlarea/mediaplayer.swf"><PARAM NAME="Src" VALUE="/communicog/htmlarea/mediaplayer.swf"><PARAM NAME="WMode" VALUE="Window"><PARAM NAME="Play" VALUE="0"><PARAM NAME="Loop" VALUE="-1"><PARAM NAME="Quality" VALUE="High"><PARAM NAME="SAlign" VALUE="LT"><PARAM NAME="Menu" VALUE="-1"><PARAM NAME="Base" VALUE=""><PARAM NAME="AllowScriptAccess" VALUE="always"><PARAM NAME="Scale" VALUE="NoScale"><PARAM NAME="DeviceFont" VALUE="0"><PARAM NAME="EmbedMovie" VALUE="0"><PARAM NAME="BGColor" VALUE=""><PARAM NAME="SWRemote" VALUE=""><PARAM NAME="MovieData" VALUE=""><PARAM NAME="SeamlessTabbing" VALUE="1"><PARAM NAME="Profile" VALUE="0"><PARAM NAME="ProfileAddress" VALUE=""><PARAM NAME="ProfilePort" VALUE="0"><PARAM NAME="AllowNetworking" VALUE="all"><PARAM NAME="AllowFullScreen" VALUE="true"></OBJECT>
i'e internally FLV code of the javascript(swfobject,meadiaplayer.swf) is changed like above <object code.
now in the same editor page we have another button called as SAVE button, by clicking on the SAVE button whatever the content in the editor that should be appear in the main page.
After click on the SAVE button the html(i told when u click on the viewsource button ,the html for the content in the editor will come , that html) will be stored in one page and that page is linked to main page.
Now after displaying the FLV in the editor the code for the FLV changed to <object like this, and after clicking on the SAVE button this FLV code(<object) is saved ,and the this changed <object code is executin in the main page and in that main page FLV is not played .
So to play the FLV in the main page aslo what i have to do.
if we need further clarification ,plz let me know
PLEASE TELL ME SOLUTION
THANK U SIR
Apr. 03, 2008andersen
yes, it would seem you will have to circumvent the expressed swfobject code from the "view source" -
you will have to do a "double" - to show the original swfobject code as text instead -
please see the [url=http://home5.inet.tele.dk/nyboe/flash/mediaplayer_wizard.html]Old wizard[/url] (linked from the [url=http://www.jeroenwijering.com/?page=wizard]wizard[/url]) for code that works in this manner...
Apr. 04, 2008Raj
Thank u sir,
i have seen that above link, but what is the ufo.js ,is there any difference between swfobject.js and ufo.js, which one is better, i did not understand in that link ,plz execuse me.
i am calling createpalyer() mentod in editor ,so it is playing,
After click on SAVE button, Shall i again call the createplyer() method in the main page(yesterday i have told that ,in this main page FLV is not playing due to <object, that page).
is it ok to cal crateplayer() method two times or will there be any problem by calling so.
OR
is there any way to play FLV with the code <object which is changed from javascript of FLV
Thank u sir
Apr. 04, 2008andersen
ufo.js is old and shouldnt be used anymore (best parts are built into swfobject v2 - which will probably be the future standard)
no, i wanted you to see that old wizard because of the way it makes the code two times - one for embedding and one for show!
and yes, you can (re)create the player as often you want without problems...
Apr. 04, 2008Raj
Thank u sir..
I alredy told, i n editor FLV is playing , and after clicking on SAVE button , the FLV code is change like <object as mentioned above.
Now , i tried with this <object code by changing the FlashVars param value to .flv file outside of my application ,it is working fine.
Acctually i hardcoded that FlashVars param value.
Now shall i use the <object code ( which is changed from javascript(swfobject.js) code) to play the FLV in my application's main page.
Is their any javascript code that changes FlashVars values dynamically..
OR
Shall i use this <object code to play the FLV
Apr. 04, 2008andersen
a few flashvars, such as "file" can be changed dynamically using the javascript api -
else the general rule is that the player has to be (re)created by a call to createPlayer and swfobject before flashvars take effect!
please try some experiment with the following code - read very carefully and take extreme care with the " and the '<html> i think this is as close as i can do it for you...
<!-- saved from url=(0014)about:internet -->
<head>
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
var txt;
function createplayer(theFile, theImage, theWidth, theHeight, theDisplayheight, theOverstretch, go) {
var s = new SWFObject("mediaplayer.swf", "playerID", theWidth, theHeight, "7");
s.addParam("allowfullscreen","true");
s.addVariable("file", theFile);
s.addVariable("width", theWidth);
s.addVariable("height", theHeight);
s.addVariable("displayheight", theDisplayheight);
s.addVariable("overstretch", theOverstretch);
if (go) { s.addVariable("autostart","true"); }
s.write("placeholder");
txt='<html>\n<head>\n\n';
txt+='<s' + 'cript type="text/javascript" src="swfobject.js"></s' + 'cript>\n';
txt+='<s' + 'cript type="text/javascript">\n\n';
txt+='function createplayer() {\n';
txt+='var s = new SWFObject("mediaplayer.swf", "playerID", "' + theWidth + '", "' + theHeight + '", "7");\n';
txt+='s.addParam("allowfullscreen","true");\n';
txt+='s.addVariable("file", "' + theFile + '");\n';
txt+='s.addVariable("width", "' + theWidth + '");\n';
txt+='s.addVariable("height", "' + theHeight + '");\n';
txt+='s.addVariable("displayheight", "' + theDisplayheight + '");\n';
txt+='s.addVariable("overstretch", "' + theOverstretch + '");\n';
if (go) { txt+='s.addVariable("autostart", "true");\n' };
txt+='s.write("placeholder");\n';
txt+='}\n';
txt+='</s' + 'cript>\n';
txt+='</head>\n';
txt+='<body onLoad="createplayer()">\n\n';
txt+='<div id="placeholder">\n';
txt+='<a href="http://www.macromedia.com/go/getflashplayer">\n';
txt+='get flash</a> to see this player.\n';
txt+='</div>\n\n';
txt+='</body>\n</html>';
}
function showSourceCode() {
document.getElementById("sourceText").value = txt;
}
</script>
</head>
<body onLoad="createplayer('video.flv', 'preview.jpg', '320', '260', '240', 'fit', false)">
<a href="javascript:createplayer('video1.flv', 'preview1.jpg', '320', '260', '240', 'fit', true)">video1</a><br>
<a href="javascript:createplayer('video2.flv', 'preview2.jpg', '320', '200', '180', 'fit', true)">video2</a><br>
<a href="javascript:createplayer('video3.flv', 'preview3.jpg', '320', '260', '240', 'fit', true)">video3</a><br>
<br>
<div id="placeholder">
<a href='http://www.macromedia.com/go/getflashplayer'>get flash</a> to see this player.
</div>
<br>
<a href="javascript:showSourceCode()">show source</a> -
<a href="javascript:alert(txt)">alert source</a><br>
<br>
<form><textarea id="sourceText" rows="20" cols="60"></textarea></form>
</body>
</html>
Apr. 08, 2008ram
I am display flv file in div tag once i start to play flv file is not end even i move to another tag and at the same time two files running.but in mozilla firefox its working good but IE7 getting this problem
Apr. 08, 2008ram
hi
how can i stop the player automatically
Apr. 14, 2008Raj
Can we add our own coustamized paramer while creating player like
s1.addParam('.........' , '........'); so that we can access that parameter whenever i want. and while seeing the innerHTML of that player that parameter should appear .
This is because, i want to send a value to that coustamized parameter and i wil use later.
PLEASE LET ME KNOW SIR
Thank u sir.
May. 11, 2008Salman
anyone know how to make http://go4ent.com/flashPlayer/? this script
Jun. 02, 2008sonu
Is there any best way to play mp3 using flash player version 7 in browser , and javascript also i want to work for this.
please let me know
Thank u
Jun. 02, 2008andersen
@sonu - from - http://www.jeroenwijering.com/?item=Javascript_interaction Note that javascript interaction only work for the Flash Plugin 8+ and only online, due to security restrictions.
Jun. 16, 2008sonu
Thanks,
u said that " that javascript interaction only work for the Flash Plugin 8+ and only online, due to security restrictions."
is this for only jeroenwijering player or all the other player also ??
i want to play mp3 in flash player version 7 onwards, is there any way to play like this using javascript,
please let me know
Thanks.
Jun. 16, 2008andersen
i tend to think that flash 7 in general have problems with javascript interaction -
so you cant use javascript interaction like 'loadfile' or 'playpause', but will have to recreate the player instead -
please see the linkplaylist and playlistlinks demos on the demopage (they play videos but the principle is the same for .mp3)
http://home5.inet.tele.dk/nyboe/flash/mediaplayer/linkplaylist.htm
http://home5.inet.tele.dk/nyboe/flash/mediaplayer/playlistlinks.htm
http://home5.inet.tele.dk/nyboe/flash/mediaplayer
(if you are using ps2/3 or such machines im afraid only flash 7 is supported - else people should really really update the flash plugin for security reasons - there has been many security updates since that version ! )
Jun. 21, 2008Trinity
if (typ == "state" && pr1 == 3) { alert("done!"); }
muito legal, nada comparavel
Jul. 17, 2008sonu
we have already implemented flv in our application using jeroenwijering player using swfobject .
i think this player is not free for commercial purpose, as my application is for commercial purpose,
is there any player which is free for commercial purpose,and should work like jeroenwijering player ,
and what we have implemented the code using jeroenwijering player using swfobject in my application that should not be
spoiled.
Thanks.
Here are some helpful links to learn more about the JW Player™:
Earn money with ads from LongTail's AdSolution. Watch our demos and sign up now!
If you don’t buy a commercial license, you cannot use a JW Player™ on (i) a site that has ads; (ii) a corporate site; or a (iii) CMS. Our licenses are very inexpensive, so what are you waiting for? Buy a license today.