Parse secure RTMP urls to XMTV

About XMTV Player Forums Development Parse secure RTMP urls to XMTV

Tagged: , ,

This topic contains 9 replies, has 3 voices, and was last updated by  support 1 year, 6 months ago.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #704

    mawais15
    Participant

    Hi,

    I want to parse rtmp parameters like rtmp, swfUrl, live, pageUrl, token etc to XMTV player from my activity, How can i do that??

    #705

    support
    Keymaster

    Below is example of method how to call XMTVPlayer to play video link:
    Play single media: http://xmtvplayer.com/development-api, more info about complex rtmp: http://xmtvplayer.com/build-m3u-file.

    String VideoUrl = “rtmp://$OPT:rtmp-raw=rtmp://xxx.xxx.xxx.xxx/app playpath=lxkcbvxdlkj swfUrl=http://www.xxxxxx.tv/resources/scripts/eplayer.swf live=1 pageUrl=http://www.xxxxxxxx.tv/ conn=S:OK live=1 token=SomeToken”;
    XMTVPlayerPlayUri(“Name of stream”,VideoUrl);

    /**
    * @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);
    }

    #707

    mawais15
    Participant

    Thanks

    What if i have some parameters missing? can i skip those parameters in the url parsing like

    String VideoUrl = “rtmp://$OPT:rtmp-raw=rtmp://xxx.xxx.xxx.xxx/app playpath=lxkcbvxdlkj swfUrl=http://www.xxxxxx.tv/resources/scripts/eplayer.swf live=1 pageUrl=http://www.xxxxxxxx.tv/ live=1”;

    and also please tell me if the order of the parameters in the VideoUrl matters?

    #708

    support
    Keymaster

    you can skip all parameters which are not required for your stream, also there is not required order when pass parametres.

    • This reply was modified 1 year, 9 months ago by  support.
    #710

    mawais15
    Participant

    Thanks a lot, i got it working finally

    #711

    support
    Keymaster

    If you have any further queries, please do not hesitate to contact us.

    #942

    sudhar007
    Participant

    how can i set click a rtmp link direct open to xmtv player

    #943

    support
    Keymaster

    You can add this method to your code and ivoke it with url and title.
    XMTVPlayerPlayUri(“Your video title”,”Your rtmp:// video link”);

    /**
    * @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);
    bnd.putBoolean(“HiddenMode”, true); // Hide Share & Favorite button from player
    bnd.putBoolean(“NoExitPrompt”, true); // Exit from player with one click of back button
    bnd.putBoolean(“HideBufferLine”, true); // Hide yellow buffer status line
    Intent intent = new Intent();
    intent.setClassName(“com.xmtvplayer.watch.live.streams”,”org.zeipel.videoplayer.XMTVPlayer”);
    intent.putExtras(bnd);
    startActivityForResult(intent, 100);
    }

    #945

    sudhar007
    Participant

    this above code id html code?

    #946

    support
    Keymaster

    You use WebView in your app to show your HTML code. You must add this code in your app, not in html. If you want to be run direct without to code in your app, We must add unique handler like httpopt, but for rtmp rows, let me know and we will add it on next release.

    Regards

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.

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