Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (device)
Viewing all articles
Browse latest Browse all 250

RTSP not always work

$
0
0

Application type: mobile

Titanium SDK:1.8.1

Platform & version: Android 2.1

Device: Android device(moto xoom)

Host Operating System: Windows XP

Titanium Studio: version 1.0.8

My problem is other rtsp address will work but not this one

'rtsp://x1mission.dyndns-free.com:554/'

For example, i can play 'rtsp://ipeyeanywhere.marmetik.com/mpeg4'

But I can use VLC player for this rtsp.

So it should be right,then why it won't work on device. Can anyone help me please!

var ta1 = Titanium.UI.createTextArea({
            color:'#336699',
            height:'auto',
            top:10,
            left:10,
            width:'auto',
            value:'rtsp://x1mission.dyndns-free.com:554/'
    });        
        var mediaplayer1 = Titanium.Media.createVideoPlayer({
                scalingMode:Titanium.Media.VIDEO_SCALING_NONE,
        width:400,
        height:300,
        top:100,
        left:50,
        backgroundColor:'red'
    });
 
    var button1 = Titanium.UI.createButton({
        title:'PLAY',
    });
    button1.addEventListener('click',function(e){
        var videoURL = ta1.getValue();
        mediaplayer1.setUrl(videoURL);
        mediaplayer1.play();
    });

Viewing all articles
Browse latest Browse all 250

Latest Images

Trending Articles





Latest Images