Skip navigation
Currently Being Moderated

Can VideoPlayer source be a PHP url?

Nov 30, 2013 1:16 PM

Tags: #php #source #4.6 #videoplayer

I have audio clips saved in a database, and use a PHP script to retrieve them. If I call something like this in a browser, the PHP script sends an MP3 data stream and the browser plays it correctly.


What I want to do now is to play these clips using Flex VideoPlayer. I tried the following, but nothing played.


<s:VideoPlayer source="" />


Does VideoPlayer check the file extension and disallow non-media files? I could write the audio data to a .mp3 file first on the server, but I'd rather not do that.

  • Currently Being Moderated
    Dec 2, 2013 12:46 AM   in reply to afukada

    I don't know if the video player can play MP3 files or not (I suspect NOT), but why would you assume it could and why would you want to play sound through a video player?

    Mark as:
  • Currently Being Moderated
    Dec 2, 2013 7:16 AM   in reply to afukada

    I have a feeling it might be a MIME type issue - with the PHP not generating the correct headers, but I don't have any time to investigate this for you.

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points