# how can i get this to play on a direct link through the video player on android

**URL:** <https://community.wowza.com/t/how-can-i-get-this-to-play-on-a-direct-link-through-the-video-player-on-android/36600>\
**Category:** Wowza Streaming Engine\
**Created:** [October 21, 2011, 12:35am UTC](https://community.wowza.com/t/how-can-i-get-this-to-play-on-a-direct-link-through-the-video-player-on-android/36600 "2011-10-21T00:35:08Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wilcina\_Longdon](https://avatars.discourse-cdn.com/v4/letter/w/ecb155/32.png) [@Wilcina\_Longdon](https://community.wowza.com/u/Wilcina_Longdon)\
**Post date:** [October 21, 2011, 12:35am UTC](https://community.wowza.com/t/how-can-i-get-this-to-play-on-a-direct-link-through-the-video-player-on-android/36600/1 "2011-10-21T00:35:08Z")

</div>

I want to play on android but none of these links are working directly on android…

rtmp direct link: rtmp://toproadstreaming.com:1935/Android/default.stream

* * *

rtsp direct link: rtsp://toproadstreaming.com:1935/Android/default.stream

* * *

only if i embed this code on a website [http://toproadstreaming.com/Android](http://toproadstreaming.com/Android) it can then be played when i enter this url on android.

how can i get this to play on a direct link through the video player on android

This text will be replaced

---

<div class="post-metadata">

**Author:** ![Randall\_Auriemma](https://avatars.discourse-cdn.com/v4/letter/r/85e7bf/32.png) [@Randall\_Auriemma](https://community.wowza.com/u/Randall_Auriemma)\
**Post date:** [October 20, 2011, 9:54pm UTC](https://community.wowza.com/t/how-can-i-get-this-to-play-on-a-direct-link-through-the-video-player-on-android/36600/2 "2011-10-20T21:54:16Z")

</div>

So, you can get it to work in RTMP/Flash. You want it to work in RTSP.

You will have to narrow down the problem.

1. Try the [Wowza Mobile Demo](https://www.wowza.com/demos/mobile.html) to see your Android RTSP player works.

2. Setup and test a [VOD Application](https://www.wowza.com/docs/how-to-set-up-video-on-demand-streaming) to see that Wowza works through your firewall with RTSP.

3. That leaves only your live encoding. You’ll have to ensure that your live encoding is supported by your RTSP Player.

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [October 21, 2011, 11:53pm UTC](https://community.wowza.com/t/how-can-i-get-this-to-play-on-a-direct-link-through-the-video-player-on-android/36600/3 "2011-10-21T23:53:56Z")

</div>

Is it MP3? Because Android does not support streaming MP3

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [October 23, 2011, 11:24am UTC](https://community.wowza.com/t/how-can-i-get-this-to-play-on-a-direct-link-through-the-video-player-on-android/36600/4 "2011-10-23T11:24:45Z")

</div>

That’s MP3, which is not supported in Android.

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [October 24, 2011, 11:58am UTC](https://community.wowza.com/t/how-can-i-get-this-to-play-on-a-direct-link-through-the-video-player-on-android/36600/5 "2011-10-24T11:58:53Z")

</div>

That might work, or VLC. Here are guides for each that can help:

[https://www.wowza.com/docs/how-to-use-vlc-as-a-live-stream-encoder-with-wowza-media-server-mpeg-ts](https://www.wowza.com/docs/how-to-use-vlc-as-a-live-stream-encoder-with-wowza-media-server-mpeg-ts))

[https://www.wowza.com/docs/how-to-use-ffmpeg-with-wowza-media-server-mpeg-ts](https://www.wowza.com/docs/how-to-use-ffmpeg-with-wowza-media-server-mpeg-ts))

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [October 24, 2011, 11:59am UTC](https://community.wowza.com/t/how-can-i-get-this-to-play-on-a-direct-link-through-the-video-player-on-android/36600/6 "2011-10-24T11:59:48Z")

</div>

…but not sure about 2 pass for a live stream, I don’t see how that is possible

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [October 24, 2011, 1:47pm UTC](https://community.wowza.com/t/how-can-i-get-this-to-play-on-a-direct-link-through-the-video-player-on-android/36600/7 "2011-10-24T13:47:24Z")

</div>

Another option is the Wowza 3 Transcoder

Richard

---

<div class="post-metadata">

**Author:** ![Randall\_Auriemma](https://avatars.discourse-cdn.com/v4/letter/r/85e7bf/32.png) [@Randall\_Auriemma](https://community.wowza.com/u/Randall_Auriemma)\
**Post date:** [October 21, 2011, 11:42am UTC](https://community.wowza.com/t/how-can-i-get-this-to-play-on-a-direct-link-through-the-video-player-on-android/36600/8 "2011-10-21T11:42:06Z")

</div>

What type of encoding are you doing?

For best results use:

Video: H.264, Baseline, Level 3.0, Keyframe Interval: 2 sec, Frame Rate: 15fps.

Audio: AAC, 44.1khz, 128kbps

---

<div class="post-metadata">

**Author:** ![Randall\_Auriemma](https://avatars.discourse-cdn.com/v4/letter/r/85e7bf/32.png) [@Randall\_Auriemma](https://community.wowza.com/u/Randall_Auriemma)\
**Post date:** [October 22, 2011, 4:32am UTC](https://community.wowza.com/t/how-can-i-get-this-to-play-on-a-direct-link-through-the-video-player-on-android/36600/9 "2011-10-22T04:32:38Z")

</div>

Hi again wlongdonstudio,

The RTSP URI you have in your first post is correct.

Try playing “rtsp://toproadstreaming.com:1935/Android/default.stream” in VLC. Then go Tools-\>Codec Information, and verify that the codec of your stream is supported by Android/RTSP.

---

<div class="post-metadata">

**Author:** ![Randall\_Auriemma](https://avatars.discourse-cdn.com/v4/letter/r/85e7bf/32.png) [@Randall\_Auriemma](https://community.wowza.com/u/Randall_Auriemma)\
**Post date:** [October 23, 2011, 5:06pm UTC](https://community.wowza.com/t/how-can-i-get-this-to-play-on-a-direct-link-through-the-video-player-on-android/36600/10 "2011-10-23T17:06:31Z")

</div>

You can do it in the VLC GUI by going to Tools-\>Convert/Save. But for better quality, you should research how to do two-pass encoding with ffmpeg.

---

<div class="post-metadata">

**Author:** ![Wilcina\_Longdon](https://avatars.discourse-cdn.com/v4/letter/w/ecb155/32.png) [@Wilcina\_Longdon](https://community.wowza.com/u/Wilcina_Longdon)\
**Post date:** [October 21, 2011, 10:32am UTC](https://community.wowza.com/t/how-can-i-get-this-to-play-on-a-direct-link-through-the-video-player-on-android/36600/11 "2011-10-21T10:32:03Z")

</div>

thxs for replying

i can play vod on my android streaming from my server

also i’m able to play live stream on my android

now that leave live shoutcast redirect…

i can’t get that to play i get the error “This video cannot be played”

---

<div class="post-metadata">

**Author:** ![Wilcina\_Longdon](https://avatars.discourse-cdn.com/v4/letter/w/ecb155/32.png) [@Wilcina\_Longdon](https://community.wowza.com/u/Wilcina_Longdon)\
**Post date:** [October 21, 2011, 6:05pm UTC](https://community.wowza.com/t/how-can-i-get-this-to-play-on-a-direct-link-through-the-video-player-on-android/36600/12 "2011-10-21T18:05:44Z")

</div>

i’m not using any encoder…i have a shoutcast server

i created a server that can redirect the stream into this wowza server…

it plays find in flash

---

<div class="post-metadata">

**Author:** ![Wilcina\_Longdon](https://avatars.discourse-cdn.com/v4/letter/w/ecb155/32.png) [@Wilcina\_Longdon](https://community.wowza.com/u/Wilcina_Longdon)\
**Post date:** [October 21, 2011, 7:23pm UTC](https://community.wowza.com/t/how-can-i-get-this-to-play-on-a-direct-link-through-the-video-player-on-android/36600/13 "2011-10-21T19:23:44Z")

</div>

no it brings a port in by relaying

---

<div class="post-metadata">

**Author:** ![Wilcina\_Longdon](https://avatars.discourse-cdn.com/v4/letter/w/ecb155/32.png) [@Wilcina\_Longdon](https://community.wowza.com/u/Wilcina_Longdon)\
**Post date:** [October 22, 2011, 9:06am UTC](https://community.wowza.com/t/how-can-i-get-this-to-play-on-a-direct-link-through-the-video-player-on-android/36600/14 "2011-10-22T09:06:39Z")

</div>

ook so wats the link to get android t work. i need your help

---

<div class="post-metadata">

**Author:** ![Wilcina\_Longdon](https://avatars.discourse-cdn.com/v4/letter/w/ecb155/32.png) [@Wilcina\_Longdon](https://community.wowza.com/u/Wilcina_Longdon)\
**Post date:** [October 22, 2011, 1:47pm UTC](https://community.wowza.com/t/how-can-i-get-this-to-play-on-a-direct-link-through-the-video-player-on-android/36600/15 "2011-10-22T13:47:40Z")

</div>

thxs will try that

---

<div class="post-metadata">

**Author:** ![Wilcina\_Longdon](https://avatars.discourse-cdn.com/v4/letter/w/ecb155/32.png) [@Wilcina\_Longdon](https://community.wowza.com/u/Wilcina_Longdon)\
**Post date:** [October 22, 2011, 2:12pm UTC](https://community.wowza.com/t/how-can-i-get-this-to-play-on-a-direct-link-through-the-video-player-on-android/36600/16 "2011-10-22T14:12:08Z")

</div>

thxs randall for responding…

ok i tried what you said

i opened rtsp://toproadstreaming.com:1935/Android/default.stream in vlc and it played i have a mac

this is what i got for the codec

Stream 0

Type Audio

Codec MPEG Audio layer 1/2/3 (mpga)

Channel 2

Stream 1

Type Audio

Codec MPEG Audio layer 1/2/3 (mpga)

Channel Stereo

Sample rate 44100Hz

Bitrate 128kb/s

---

<div class="post-metadata">

**Author:** ![Wilcina\_Longdon](https://avatars.discourse-cdn.com/v4/letter/w/ecb155/32.png) [@Wilcina\_Longdon](https://community.wowza.com/u/Wilcina_Longdon)\
**Post date:** [October 23, 2011, 3:53pm UTC](https://community.wowza.com/t/how-can-i-get-this-to-play-on-a-direct-link-through-the-video-player-on-android/36600/17 "2011-10-23T15:53:13Z")

</div>

thxs

so how do i get it a file to stream to android…i have convert the same files?

---

<div class="post-metadata">

**Author:** ![Wilcina\_Longdon](https://avatars.discourse-cdn.com/v4/letter/w/ecb155/32.png) [@Wilcina\_Longdon](https://community.wowza.com/u/Wilcina_Longdon)\
**Post date:** [October 24, 2011, 1:03am UTC](https://community.wowza.com/t/how-can-i-get-this-to-play-on-a-direct-link-through-the-video-player-on-android/36600/18 "2011-10-24T01:03:31Z")

</div>

it’s streaming live online on a shoutcast server

i’m researching two-pass encoding with ffmpeg

thxs
