java - How to get token from a website for live stream -
what i'm trying create program streams channel problem need token website generates token every time open site link stream should : stream link+token website. can send me code gets whole text website , saves use later stream link
button2 = (button) findviewbyid(r.id.button2); button2.setonclicklistener(new view.onclicklistener() { @override public void onclick(view view) { //code uri uri = uri.parse("stream link" + token generator); intent intent = new intent("android.intent.action.view", uri); intent.setdataandtype(uri, "video/*"); intent.putextra("secure_uri", true); intent.putextra("title", "junior tv"); try { intent.setpackage("com.mxtech.videoplayer.ad"); intent.setclassname("com.mxtech.videoplayer.ad", "com.mxtech.videoplayer.ad.activityscreen"); mainactivity.this.startactivityforresult(intent, 0); } catch (activitynotfoundexception e) { log.e("mx player", "is not installed"); mainactivity.this.startactivity(intent); } } });
Comments
Post a Comment