Using intent to run a live video stream

About XMTV Player Forums Help and Support Using intent to run a live video stream

This topic contains 10 replies, has 2 voices, and was last updated by  bmike21 1 year, 4 months ago.

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #1381

    bmike21
    Participant

    When using am start … to send a live video stream to XMTV it works fine for regular streams http, rtmp… but when the format is a complex rtmp “rtmp://$OPT:rtmp-raw=…swfUrl=…pageUrl=…” I get “we are unable to play this video”

    Thanks

    #1382

    bmike21
    Participant

    I think it has something to do with the spaces in the rtmp (-d) parameter replacing with %20 has no effect

    #1383

    support
    Keymaster

    Hi bmike21,
    Could you send on email (rachevlabs@gmail.com) or share here rtmp link that you have a problem. We will fix issue asap.

    Kind Regards

    #1384

    bmike21
    Participant

    link is:
    rtmp://$OPT:rtmp-raw=rtmp://d.cdn.newschat.tv/edge/cnni_live swfUrl=http://newschat.tv/player.swf live=1 pageUrl=http://www.livenewschat.eu/international/

    and the intent is:
    am start -a android.intent.action.VIEW
    -d *LINK*
    -n com.xmtvplayer.watch.live.streams/org.zeipel.videoplayer.XMTVPlayer

    the link works fine when in an m3u file just not as an intent

    Thanks

    #1385

    support
    Keymaster

    Hi,
    please add follow code in your app, where Title is stream name and uri is playpath.
    More samples you can see here: http://xmtvplayer.com/development-api.

    Please do not hesitate to contact me if you have any further questions.

    /**
    * @param Title – Media Name
    * @param uri – path/url to media
    */
    public void XMTVPlayerPlayUri(String Title,String uri){
    Bundle bnd = new Bundle();
    bnd.putString(“path”, uri);
    bnd.putString(“name”, Title);
    Intent intent = new Intent();
    intent.setClassName(“com.xmtvplayer.watch.live.streams”,”org.zeipel.videoplayer.XMTVPlayer”);
    intent.putExtras(bnd);
    startActivityForResult(intent, 100);
    }

    • This reply was modified 1 year, 4 months ago by  support.
    #1387

    bmike21
    Participant

    Thank You

    I thought the data parameter was enough even though I saw the path and name in the “How To” section.

    Added those and working great now.

    #1388

    bmike21
    Participant

    I was wrong not working:

    for a stream like

    http://wpc.c1a9.edgecastcdn.net/hls-live/20C1A9/cnn/ls_satlink/b_,264,528,828,.m3u8

    it works fine

    but when it a complex rtmp:
    rtmp://$OPT:rtmp-raw=rtmp://d.cdn.newschat.tv/edge/cnni_live swfUrl=http://newschat.tv/player.swf live=1 pageUrl=http://www.livenewschat.eu/international/
    it is unable to play

    I am calling this through adb using the command

    adb shell am start -a android.intent.action.VIEW -n com.xmtvplayer.watch.live.streams/org.zeipel.videoplayer.XMTVPlayer –user 0 -e path “rtmp://$OPT:rtmp-raw=rtmp://lv9.ustvnow.com/dvrtest/F3CCDWHTMUSTVNOW1 swfUrl=http://www.ustvnow.com/player/flowplayer.commercial-3.2.15.swf?sid=BMICHAEL7516087BE5CED22EA55B1BB818730743E37 live=1 pageUrl=http://www.ustvnow.com” -e name ABC

    • This reply was modified 1 year, 4 months ago by  bmike21. Reason: extra info
    #1390

    support
    Keymaster

    I’m trying your sample and in bundle receive wrong data.

    Intent pass:
    rtmp://$OPT:rtmp-raw=rtmp://lv9.ustvnow.com/dvrtest/F3CCDWHTMUSTVNOW1 swfUrl=http://www.ustvnow.com/player/flowplayer.commercial-3.2.15.swf?sid=BMICHAEL7516087BE5CED22EA55B1BB818730743E37 live=1 pageUrl=http://www.ustvnow.com

    App Receive:
    rtmp://:rtmp-raw=rtmp://lv9.ustvnow.com/dvrtest/F3CCDWHTMUSTVNOW1 swfUrl=http://www.ustvnow.com/player/flowplayer.commercial-3.2.15.swf?sid=BMICHAEL7516087BE5CED22EA55B1BB818730743E37 live=1 pageUrl=http://www.ustvnow.com

    #1391

    bmike21
    Participant

    Interesting the $OPT is being dropped – never saw that happen before

    #1392

    support
    Keymaster

    at my tests there is no matter where I pass $variable, all parameters passed with $ are stripped. I’m trying to found some info about $variable used with adb shell, but with no luck. If you found some info will be great if you share it.
    Kind Regards

    #1393

    bmike21
    Participant

    I think I remember that it has to be entered as \$OPT so it would be
    rtmp://\$OPT:rtmp-raw=…
    testing it right now

    edit: that appears to be it, I hate forgetting things!

    Thank You

    • This reply was modified 1 year, 4 months ago by  bmike21.
Viewing 11 posts - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.

IPTV | Smart TV | Mobile Theatre Software | Media Player for Android(tm)