type of media stream used w/ MediaPlayerStream

exjey

Member
Licensed User
Longtime User
What type of media streaming the source must be in order to be played by the MediaPlayerStream? If the PC streams audio using the Windows Media Encoder, then the address is mms://host_addr:8080 usually at least. Is this address compatible with MediaPlayerStream engine ? If not, with what program (Windows) i can stream audio for the android devices.
 

exjey

Member
Licensed User
Longtime User
Thanks i read it. But still dont know which program should i use for streaming from my PC. I dont actually want to know about codecs, sorry for that. Its 2013. 25 years before i was building my first pull-down-menu library in assembly "language" by learning from just a Peter Norton's book. There are changes since then, just few keywords and starts playing :)

Really, all i need is an information. Is Windows Media Encoder compatible? If not, what program is it?
 
Upvote 0

Mark Read

Well-Known Member
Licensed User
Longtime User
Exjey,

I am using almost the same app which I'll give you to stream from my PC. I have a simple web server installed on a NAS system. A directory contains media files (mp3, mp4, avi, flv etc). I have a php script which generates a html file which I then read into my app, parse it and send the filenames to a list. Clicking an item opens the file as a stream.

Hope this helps.
Best regards
Mark
 
Upvote 0

exjey

Member
Licensed User
Longtime User
Thanks Mark too, but the media streaming is not fixed audio files, is live audio from our tv station. I checked also the vitamio library but its too complex for me (for video streaming), and it makes the app not really friendly for android 2.1 devices.

But about the audio stream, my project is simple. I have a PC streaming with Windows Media Encoder at least the sound of our tv station. The default address for getting the audio from a Windows Media Player is "mms://" (or http://) and then "192.168.1.100:8080", that simple. About picture too, i dont know, maybe later. So i want that sound to be heared live from my app.....

Android is maybe a "simple" OS, but very-very object oriented, very-very multimedia powered.
 
Upvote 0

Mark Read

Well-Known Member
Licensed User
Longtime User
Exjey,

I have posted my app source anyway. I am also using 192.168.1.114:8080 to stream at home and from outside the external IP. Works fine with mp3, mp4, avi, flv.

I am not sure what else you want.

Have a look if you wish.
Regards
Mark
 
Upvote 0

exjey

Member
Licensed User
Longtime User
Thanks Mark for the code. In the mean time i did some research, Windows Media Encoder is NOT compatible at all with mediaplayerstream and generally with Androids , because the last ones does not support WMA audio (if we are talking for audio streaming).

I am so sad, because i thought i was "too close" to find a solution and play our company's stream by installing a Shoutcast server, which listens for the Shoutcast DSP plugin / Winamp. The DSP plugin connects successfully with the server, the source address is for example http://localhost:8000/stream/1 , but this address produces the same error with mediaplayerstream: ERROR_UNKNOWN_MEDIA . The encoder of the DSP plugin has two choices, AAC or MP3. Tried both, no change. If someone has tried before......

Now i am going to check the code Mark, thanks.

p/s Winamp opens successfully the http://localhost:8000/stream/1 URL, so indeed that stream is not recognized by the mediaplayerstream decoder.
 
Upvote 0
Top