NetTalk Central

Author Topic: Play wav,mp3, avi and images  (Read 4361 times)

willie53

  • Newbie
  • *
  • Posts: 25
    • View Profile
    • Email
Play wav,mp3, avi and images
« on: March 30, 2012, 09:28:54 AM »
We have a server that's strictly used for archiving our document's , images etc of our clients,
I've tried with no success on accessing these recordings (wav), images via the browser with no success.

1: can i use UNC naming convention such as
\\servername\storage$\2012\3\nameofwav.wav

2: can the system use the client's browser default application to view these files.

Can I see a sample of how this is being done?

Thanks in advance.

terryd

  • Hero Member
  • *****
  • Posts: 759
    • View Profile
    • Davcomm
    • Email
Re: Play wav,mp3, avi and images
« Reply #1 on: March 31, 2012, 12:48:15 AM »
Hi Willie
You should be able to view/play any file that you can view with a browser.
The file that you want to display must be under your web folder (unless you want to be invaded by the hackers and crackers) so your url that you build  should be soething like http:\\mywebsite.com\2013\3\nameofwav.wav where 2013 is a subfolder of web
You can display file from your non web system but I would suggest copying them to your web folder and then displaying the copied file.
Terry Davidson
Windows 10 64 bit/Windows7 64bit
Clarion 9.1.11529/Clarion10 12567
Nettalk 913
Nettalk 1015
StringTheory267/Winevent515/XFiles298/MessageBox239/Cryptonite186

willie53

  • Newbie
  • *
  • Posts: 25
    • View Profile
    • Email
Re: Play wav,mp3, avi and images
« Reply #2 on: March 31, 2012, 09:07:53 PM »
do you have a sample of how to play the a wav file ?
I've been looking, haven found anything that works.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11251
    • View Profile
Re: Play wav,mp3, avi and images
« Reply #3 on: April 01, 2012, 05:43:45 AM »
images are easy - but media files can be trickier. I think I'll build out an example of this.

cheers
Bruce

willie53

  • Newbie
  • *
  • Posts: 25
    • View Profile
    • Email
Re: Play wav,mp3, avi and images
« Reply #4 on: April 01, 2012, 11:57:01 AM »
Yes, I've been working on it for a few days, just can't seem to get it going.
A example would bre great.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11251
    • View Profile
Re: Play wav,mp3, avi and images
« Reply #5 on: April 02, 2012, 06:31:29 AM »
Hi Willie,

>> We have a server that's strictly used for archiving our document's , images etc of our clients,

>> I've tried with no success on accessing these recordings (wav), images via the browser with no success.

I think perhaps this is worth exploring in a few steps. Firstly, what exact file types are you planning to store? You talked in the first sentence about "docs" and "images" - but then transitioned to "wav" - which are sounds, not docs.

Browsers can display images, and some docs (PDF's etc) nativly (or via the use of a plugin like the Adobe PDF plugin) - but sounds require the Quicktime plugin, movies can require Flash, and so on.

so perhaps, tell me more about the exact types of files you are wanting to support, and let's go from there.

cheers
Bruce

willie53

  • Newbie
  • *
  • Posts: 25
    • View Profile
    • Email
Re: Play wav,mp3, avi and images
« Reply #6 on: April 02, 2012, 07:41:31 AM »
Hi Bruce,
We have recordings that are wav files, they are stored on a separte secured server.
I have created a  ( OTHER ) button and I checked the  ( send button click to server) , when a user presses the button , I have code that locates the file and copies to a folder under the ( WEB ) directory called TempRecs.
This part works.

What doesn't work is playing the Wav file itself that i just copied.

I will use the same process to view , PDF, XLS.
thanks