opening file in object player

This is a discussion on "opening file in object player" within the JavaScript Forum section. This forum, and the thread "opening file in object player are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Dec 2nd, 2007, 09:30
Junior Member
Join Date: Nov 2007
Location: Hong Kong
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
opening file in object player

<object type="application/x-mplayer2"
data="../audio/75743899.mp3"
width="200" height="50"
standby= "ready to play ..." >
<param name="autoplay" value="true"/>
<param name="src" value="../audio/75743899.mp3"
valuetype ="data"/>
Plug-in not found - Please install
</object>

why is it that i could only open file as "75743899.mp3" but not "../audio/75743899.mp3" ?
isn't that the way to open files in other directory?
Reply With Quote

  #2 (permalink)  
Old Dec 2nd, 2007, 09:34
Marc's Avatar
Moderator

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,637
Thanks: 0
Thanked 6 Times in 6 Posts
Send a message via MSN to Marc Send a message via Skype™ to Marc
Re: opening file in object player

Is the 'audio' file in the same directory as the file that contains that code?
Reply With Quote
  #3 (permalink)  
Old Dec 2nd, 2007, 09:55
Junior Member
Join Date: Nov 2007
Location: Hong Kong
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Re: opening file in object player

up one directory
Reply With Quote
  #4 (permalink)  
Old Dec 2nd, 2007, 09:56
Marc's Avatar
Moderator

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,637
Thanks: 0
Thanked 6 Times in 6 Posts
Send a message via MSN to Marc Send a message via Skype™ to Marc
Re: opening file in object player

ok so can you try:

HTML: Select all
<object type="application/x-mplayer2"
        data="audio/75743899.mp3"
        width="200" height="50"
        standby= "ready to play ..." >
        <param name="autoplay" value="true"/>
        <param name="src" value="audio/75743899.mp3"
        valuetype ="data"/>

</object>
Reply With Quote
  #5 (permalink)  
Old Dec 2nd, 2007, 09:58
Junior Member
Join Date: Nov 2007
Location: Hong Kong
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Re: opening file in object player

i mean
this code is in a file that's in the "project" folder
the "audio" folder and the "project" folder are under the same directory say folder "a"
Reply With Quote
  #6 (permalink)  
Old Dec 2nd, 2007, 10:04
Junior Member
Join Date: Nov 2007
Location: Hong Kong
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Re: opening file in object player

done!

i moved the whole "audio" folder into the "project" folder
and used data="audio/75743899.mp3" and it played alright!

Thanks very much!
Reply With Quote
  #7 (permalink)  
Old Dec 2nd, 2007, 10:05
Marc's Avatar
Moderator

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,637
Thanks: 0
Thanked 6 Times in 6 Posts
Send a message via MSN to Marc Send a message via Skype™ to Marc
Re: opening file in object player

Your code should work then. Have you tried the full route to see if it is your code is correct? e.g. other directorys here on the way to 'a'/a/audio/75743899.mp3

EDIT: Congrats!!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Asp not opening! aspcam Classic ASP 2 Jul 26th, 2007 22:38
How to make XML file work with slide show player OmiE Starting Out 0 Jun 4th, 2007 21:49
problem with opening IE uddin Web Page Design 5 Mar 29th, 2007 15:26
File system object madhuri.t Classic ASP 1 Feb 20th, 2006 12:57
FSO (File System Object) Performance spinal007 Classic ASP 17 Mar 16th, 2005 18:03


All times are GMT. The time now is 11:19.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43