Oct. 15, 2009Victor
Sorry for the bad expresion in english
What I'm thinking about is that are there any example or tutorial on
making a list of songs in a page, and a player along it
and when I click the name of the song, the browser would call the player and insert the selected song's file location.
Thank you,
Victoe
Oct. 15, 2009Victor
or,
i'm not sure if it's eaier or harder,
can I just write all the file locations inside the code instead of pointing to a xml file?
'cause I'm using dynamic urls that gnerates a different url each day with php
ex:
http://xxx.com/1.mp3 has an actual url of http://xxx.34.com/fff/asdf/1.mp3 and the value changes
all the "http://xxx.com/1.mp3" will be redirected automaticlly, and it works fine with single file playing.
but the urls in playlist.xml won't be redirected
thank you
victor
Oct. 22, 2009Zachary Ozer
Hey Victor, not quite sure what you're asking. Could you please rephrase your question?
Also, check out the JavaScript playlist - http://www.longtailvideo.com/support/tutorials/Playlist-Tutorial. It may be what you're looking for
Oct. 27, 2009Antonio
Hi, i'm trying to change the video clicking on a button in my page (i'm not using playlist).
I get a javascript error in IE7 (not tested in IE6 IE8). It works fine in Firefox 3.5, Safari4, Chrome.
The html to embed the video in the page is:
<embed id="player" name="player" src="/player/player.swf" width="400" height="300" />
Javascript i use to change the video is:
function changeVideo(video_url) {
var player = $("#player")[0];
player.sendEvent("LOAD", video_url);
player.sendEvent("PLAY");
}
I use jquery to get the reference to the player object and then send the events to change the video.
I'm using the last release of jwplayer (downloaded today and flashplayer 10)
Can someone help me? Thanks
Oct. 28, 2009Zachary Ozer
Antonio -
You should use playerReady to get the ID of the div with the player and then send the events.
See http://developer.longtailvideo.com/trac/wiki/FlashApi:
var player;
function playerReady(obj) {
alert('the videoplayer '+obj['id']+' has been instantiated');
player = document.getElementById(obj['id']);
};
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.