About XMTV Player › Forums › Development › How to build a wbsite with mxtv player
Tagged: handler, httpopt, m3u8, stream, xmtvplayer
This topic contains 9 replies, has 4 voices, and was last updated by support 1 year, 1 month ago.
-
AuthorPosts
-
11 January 2015 at 06:33 #625
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
19 January 2015 at 08:22 #627You 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, 6 months ago by
support.
19 January 2015 at 08:56 #629Thank 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
19 January 2015 at 10:08 #630If you use WewView to show you mobile page, you can handle urls and make check
some samples you can see at https://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);
}22 January 2015 at 11:25 #651Can 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
23 January 2015 at 10:42 #657When 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
23 January 2015 at 10:49 #658MY 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>23 January 2015 at 15:03 #661You 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.
15 June 2015 at 03:25 #1192Hi 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
15 June 2015 at 07:21 #1195Hi SuperUser, feel free to post your contact or sample code.
Cheers -
This reply was modified 1 year, 6 months ago by
-
AuthorPosts
You must be logged in to reply to this topic.