How to build a wbsite with mxtv player

About XMTV Player Forums Development How to build a wbsite with mxtv player

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

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

    savadpa
    Participant

    http://www.nasa.gov/multimedia/nasatv/NTV-Public-IPS.m3u8

    I want insert this link for my mobile website ,

    how to add my website this link direct to xmtvplayer,

    at this time this link going to mx player or website , i want this link directly play with xmtv player… plz help

    i am little week in english..sorry

    #627

    support
    Keymaster

    You can do that by reffering url with httpopt://http-raw=http://www.nasa.gov/multimedia/nasatv/NTV-Public-IPS.m3u8

    • This reply was modified 1 year, 10 months ago by  support.
    #629

    savadpa
    Participant

    Thank you sir..

    One More Help Please sir
    i need a code regarding,
    sub;- Suppose if a client click on mentioned url
    (httpopt://http-raw=http://www.nasa.gov/multimedia/nasatv/NTV-Public-IPS.m3u8 ),
    Display an popup message to show the google play link or xmtv link for downloading the xmtv player,if the clint which is not using xmtv player)

    waiting for valuable replay

    #630

    support
    Keymaster

    If you use WewView to show you mobile page, you can handle urls and make check

    http://developer.android.com/reference/android/webkit/WebViewClient.html#shouldOverrideUrlLoading%28android.webkit.WebView,%20java.lang.String%29

    some samples you can see at http://xmtvplayer.com/development-api

    webView.setWebViewClient(new WebViewClient(){
    @Override
    public boolean shouldOverrideUrlLoading(WebView view, String url) {
    // make ckeck if url is VideoLink
    // check is XMTVPlyaer is Installed on User device using isXMTVPlayerAvailable code
    // Call XMTVPlayer Intent using XMTVPlayerPlayUri code
    }
    });

    public static boolean isXMTVPlayerAvailable(Context context) {
    PackageManager pm = context.getPackageManager();
    boolean app_installed = false;
    try {
    pm.getPackageInfo(“com.xmtvplayer.watch.live.streams”, PackageManager.GET_ACTIVITIES);
    app_installed = true;
    }
    catch (PackageManager.NameNotFoundException e) {
    app_installed = false;
    }
    return app_installed ;
    }

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

    #651

    demludi
    Participant

    Can be used this javascript alert trick

    javascript:alert(‘Xmtv Player required!’);window.location = ‘httpopt://http-raw=http://www.nasa.gov/multimedia/nasatv/NTV-Public-IPS.m3u8 user-agent=your user agent

    #657

    savadpa
    Participant

    When I click this link

    httpopt://http-raw=rtmp://$OPT:rtmp-raw=rtmp://89.248.169.48/iguide playpath=kcei6bxb8npfsae swfUrl=http://www.iguide.to/p…/secure_player_iguide_embed_token.swf live=1 pageUrl=http://www.iguide.to/ token=‪#‎ed‬%h0#w18623jsda6523lDGD

    not open in xmtv palyer

    #658

    savadpa
    Participant

    MY HTML SITE CODE

    <style>
    a:link {

    text-decoration:none;
    }
    a:visited {

    color: #ffffff;text-decoration:none
    text-decoration:none;
    }

    a:hover {

    color: #ffffff;text-decoration:none
    text-decoration: none;
    cursor:,progress;
    }
    .tv {background-color: #ff7e00; color: #fff; border-width: 10px; border-color: #ff7e00; border-style: solid; padding: 3px 8px; border-radius: 8px; font-weight: bold;font-size; 8;margin: 8px;}

    .tmg {
    background-color: #ffffff; color: #fff; border-width: 2px;border-color: #000000; border-style: solid; padding: 3px 8px; border-radius: 8px; font-weight: bold;font-size; 18;margin: 8px;
    }

    .ply {
    background-color: #ff7e00; color: #fff; border-width: 8px; border-color: #ff7e00; border-style: solid; padding: 3px 8px; border-radius: 8px; font-weight: bold;font-size; 18;margin: 0px;
    }

    .des {background-color: #fcfaad; color: #000000; border-width: 1px; border-color: #fcfaad; border-style: solid; padding: 3px 8px; border-radius: 8px;font-size; 18;margin: 8px;font-family: “Rosemary”, Times New Roman, Times, serif;

    }

    .list{background-color: #ff2a00; color: #fff; border-width: 4px; border-color: #ff2a00; border-style: solid; padding: 3px 8px; border-radius: 8px;font-size; 10;margin: 8px;}
    .lis{background-color: #000000; color: #fff; border-width: 4px; border-color: #000000; border-style: solid; padding: 3px 8px; border-radius: 8px;font-size; 18;margin: 8px;font-weight: bold;}
    </style>

    <div class=”tv” align=”center”>SKY SPORTS 1</div>

    <div class=”tmg” align=”center”></div>

    <table cellspacing=”10″ align=”center”>
    <tr align=”center”>
    <td class=”ply” >Play With XMTV Player</td>

    </tr>

    </table>
    <div class=”des”><p align=”center”>All channel including in this application is <span style=”color:red;font-weight:bold”>High Quality </span>,So delay for watching takes around <span style=”color:red;font-weight:bold”> 1 -2 Minutes</span>.Use high speed internet for getting good performance </p></div>
    <center>
    <div class=”lis”>REQUIRMENTS</div>
    <div class=”list”>High Speed Internet ( 3G / WiFi )</div>
    <div class=”list”>XMTV Player</div>
    <div class=”des”><p>Thank You For Using CHD TV</p></div>
    </center>

    • This reply was modified 1 year, 10 months ago by  savadpa.
    • This reply was modified 1 year, 10 months ago by  savadpa.
    #661

    support
    Keymaster

    You must use below sample just remove httpopt://http-raw= its just for http streams

    rtmp://$OPT:rtmp-raw=rtmp://89.248.169.48/iguide playpath=kcei6bxb8npfsae swfUrl=http://www.iguide.to/p…/secure_player_iguide_embed_token.swf live=1 pageUrl=http://www.iguide.to/ token=‪#‎ed‬%h0#w18623jsda6523lDGD

    About javascript alert, I’m not sure that you can check with JS is there installed app.

    #1192

    SuperUser
    Participant

    Hi savadpa, i can help You with that, if you require an app for android, i can help you make one for you, shortly i was going to ask an support if they need some tutorials, with source files in this forum.

    Savadpa do you have hosting with php and mysql?

    If yes i can make an api and app for you possibly plugin for xmtv player?

    Please think about it and let me know here then if possible with support permission can i write here my email? On this forum or its not allowed?

    Thanks

    #1195

    support
    Keymaster

    Hi SuperUser, feel free to post your contact or sample code.
    Cheers

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)