Log in

View Full Version : music player from urls



auriaks
12-26-2009, 11:13 PM
hi,
I don't really know what topic would be this, but i think it is javaScript.
Ok, I have player, but it wont work with music from other webpages by urls.

Maybe someone could suggest some script for me?? Thanks :)

IanPatrickBuss
12-26-2009, 11:43 PM
We need a lot of more information for example: what have you got so far? What are these different urls are you talking about? The more info you give, the better we are able to help you out

molendijk
12-27-2009, 01:01 AM
It's not clear what you want exactly. Here's something that may be useful:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">

<title>Simple Player</title>

<script src="http://www.google.com/jsapi" type="text/javascript"></script>
<script type="text/javascript">google.load("swfobject", "2.1")</script>

<script type="text/javascript">
function get_video(){
var flashvars = {};var params = {};
params.wmode = "transparent";
params.allowNetworking = "internal";
params.flashvars = "autoplay=true";
params.allowFullScreen = "true";
swfobject.embedSWF(swfURL, "player", "60%", "83%", "8", false, flashvars, params);
}
window.onload=get_video;swfURL='http://www.youtube.com/v/28GPy7yRl88&amp;autoplay=1';
</script>

<style type="text/css">
#player { position:absolute;left:20%;top:10%}
</style>

</head>

<body>

<div id="player" ></div>

<a href="javascript:void(0)" onclick="swfURL='http://swf.tubechop.com/tubechop.swf?vurl=3H8V4Fzrcr0&amp;start=70&amp;end=550';get_video()">TubeChop</a><br>
<a href="javascript:void(0)" onclick="swfURL='http://www.youtube.com/v/28GPy7yRl88&amp;autoplay=1&amp;fs=1';get_video();">YouTube</a><br>
<a href="javascript:void(0)" onclick="swfURL='http://www.dailymotion.com/swf/xn7ce_carl-orff-carmina-burana-ozawa_music&amp;autoplay=1';get_video();">DailyMotion</a><br>
<a href="javascript:void(0)" onclick="swfURL='http://video.google.nl/googleplayer.swf?docid=3132980300931574703&amp;fs=true';get_video();">GoogleVideo</a><br>
<a href="javascript:void(0)" onclick="swfURL='http://video.libero.it/static/swf/eltvplayer.swf?id=f30606d37dd60fdc4f6e09643a4a6fa0.flv&amp;fs=true';get_video();">VideoLibero</a><br>

</body>

</html>
===
Arie Molendijk.

auriaks
12-27-2009, 10:25 AM
thanks for last post :) I will use it for video and music also :)