About XMTV Player › Forums › Help and Support › Using intent to run a live video stream
Tagged: adb shell, pageUrl, rtmp://$OPT:rtmp-raw=, swfUrl, XMTV
This topic contains 10 replies, has 2 voices, and was last updated by bmike21 2 years, 4 months ago.
-
AuthorPosts
-
6 September 2015 at 20:19 #1381
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
6 September 2015 at 20:50 #1382I think it has something to do with the spaces in the rtmp (-d) parameter replacing with %20 has no effect
7 September 2015 at 09:46 #1383Hi bmike21,
Could you send on email ([email protected]) or share here rtmp link that you have a problem. We will fix issue asap.Kind Regards
7 September 2015 at 12:59 #1384link 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.XMTVPlayerthe link works fine when in an m3u file just not as an intent
Thanks
7 September 2015 at 14:54 #1385Hi,
please add follow code in your app, where Title is stream name and uri is playpath.
More samples you can see here: https://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 2 years, 4 months ago by
support.
7 September 2015 at 16:25 #1387Thank 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.
7 September 2015 at 22:11 #1388I 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 playI 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 2 years, 4 months ago by
bmike21. Reason: extra info
8 September 2015 at 10:51 #1390I’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.comApp 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.com9 September 2015 at 01:23 #1391Interesting the $OPT is being dropped – never saw that happen before
9 September 2015 at 05:53 #1392at 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 Regards9 September 2015 at 10:24 #1393 -
This reply was modified 2 years, 4 months ago by
-
AuthorPosts
You must be logged in to reply to this topic.