/    Sign up×
Community /Pin to ProfileBookmark

I am wondering if someone could help me out with putting audio on my web page. I would like it so that when a persons click on a link it will make a RealOne Player window to pop up and play a desired song. I dont want ppl to have to download and save the file, and also dont want a RealOne Player that is embeded in the page (It needs to makea seperate RealOne window pop up and play the song) I figured how to embed audio but this one I really have no clue. Any code osmeone could maybe past me would be appreciated.

Thanks,
Dave

to post a comment
HTML

5 Comments(s)

Copy linkTweet thisAlerts:
@steelersfan88Mar 02.2004 — The best I could tell you to do if you don't want song downloading is to have a new window with the embed tag on it:[code=php]<script>

var tags = '<center><embed src="mySong.mp3" height=100 width=100 NOJAVA=true CONTROLS=All center=true CONSOLE=one></embed>'
var height = 245
var width = 245
var newWin = window.open('','real_one','height=200, width=200,toolbar=no,scrollbars=no,menubar=no')
newWin.document.write("<html><head><title>RealOne Player</title></head><body>")
newWin.document.write(tags)
newWin.document.write("</body</html>")
newWin.resizeTo(height,width)
var y = (screen.height - height) / 2
var x = (screen.width - width) / 2
newWin.moveTo(x,y)
newWin.focus()
newWin.document.close()

</script>[/code]
Copy linkTweet thisAlerts:
@ToYourEscapeauthorMar 03.2004 — The code you gave me works and i do appreciate that alot, but will this new window pop up as soon as the page is accessed or can i put a link to make it pop up? Just for clarification, I think a really good example of what i am trying to achieve can be found at [URL=http://www.inflames.com]www.inflames.com[/URL] I didnt think this example involved downloading but more I think aobut it, it very well may. Therefore if there is a method to achieve what i have explained even if it still includes downloading I would be interested to see how that works out as well. Anyways, Just click to view the video that is found on the main page to the right hand side. I know this obviously is video but i want the same thing just for my audio.

Thanks again,

Dave
Copy linkTweet thisAlerts:
@steelersfan88Mar 03.2004 — place all of the code into a function:

function openWin() {

// the code here

}

then when you click the link, or button, use:

onclick="openWin()"
Copy linkTweet thisAlerts:
@steelersfan88Mar 03.2004 — there are links to designate to play in real player, for example, the following clip will load up in real player:

rtsp://rxns-rbn-sea05.rbn.com/mlbr/mlbr/g2demand/clips/jackbuckgibson.rm?rpcontexturl=http://mlb.mlb.com/NASApp/mlb/mlb/audio/mlb_mediaPlayer_ta_

will open up media in real player. I have no clue how to configure one, but is that what your talking about?
Copy linkTweet thisAlerts:
@ToYourEscapeauthorMar 03.2004 — Well i got the code you gave me working and opening on a link, however I now realize that the effect this code produces isn't what I really wanted to begin with. Sorry ? Yeah so if i can get some direction or even better yet the actual code on how to make a real on player window pop up and play a desired song that would be great. And again I would like to have the new RealOne window pop up from a link. So yeah, I guess i actually do want song downloading.

Thanks for all the help I have recieved thus far.

-Dave
×

Success!

Help @ToYourEscape spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.5,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...