问题描述
我要实现从服务器流式传输。例如,下面是一个RTMP服务器的链路。
I want to implement streaming from an RTMP server. For example, below is the link of an RTMP server.
http://usher.justin.tv/find/CHANNELNAME.json?type=any
和想要做的是流媒体。
我找到了一种方法:它是连接到一个上的服务器(实在是太慢了)......我怎么把它转换为VideoView从 RTMP://
来避免使用抽搐API
I found one way: It is connected to a SWF file on a Twitch server (it is too slow) ... How do I convert it to VideoView from rtmp://
to avoid using the Twitch API?
[结果
{节点:video10-2.arn01,needed_info:,玩:jtv_FO2coLXGNLzCXtvR,meta_game:暗黑破坏神III:灵魂,收割者video_height:720,比特率 :2915.1875,broadcast_part:5,等级:0,老大难:真,集群:arn01,令牌:76b3d8aae0e6eee2bcda8d1acc34103f1a73b595:{\\swfDomains \\:[\\贾斯汀。电视\\,\\jtvx.com \\,\\xarth.com \\,\\twitchtv.com \\,\\twitch.tv \\,\\newjtv.com \\,\\jtvnw.net \\ ,\\wdtinc.com \\,\\imapweather.com \\,\\facebook.com \\,\\starcrafting.com \\],\\streamName中\\:\\jtv_FO2coLXGNLzCXtvR \\,\\过期\\:1385121067,\\服务器\\:\\video10-2.arn01 \\},连接:RTMP://192.16.65.94/app
broadcast_id:7587457488,型:活,展示:源,find_type:DIST},结果
{节点:video12-1.fra01,needed_info:,玩:jtv_LuAij7o0_zozQ4jY,meta_game:暗黑破坏神III:灵魂,收割者video_height:720,比特率 :1600年,broadcast_part:1,等级:1,老大难:真,集群:FRA01,令牌:b4db7f59d3b4d723624ee50ed2d69519d1a4cebb:{\\swfDomains \\:[\\贾斯汀。电视\\,\\jtvx.com \\,\\xarth.com \\,\\twitchtv.com \\,\\twitch.tv \\,\\newjtv.com \\,\\jtvnw.net \\ ,\\wdtinc.com \\,\\imapweather.com \\,\\facebook.com \\,\\starcrafting.com \\],\\streamName中\\:\\jtv_LuAij7o0_zozQ4jY \\,\\过期\\:1385121067,\\服务器\\:\\video12-1.fra01 \\},连接:RTMP://199.9.254.232/app
broadcast_id:7587458496,类型:高,展示:高,find_type:DIST},结果
{节点:video15-2.arn01,needed_info:,玩:jtv_e38UUDs1WLMP9wlc,meta_game:暗黑破坏神III:灵魂,收割者video_height:360,比特率 :350,broadcast_part:1,等级:3,老大难:真,集群:arn01,令牌:c416673c070354e1a33edcdb535a195463cd9702:{\\swfDomains \\:[\\贾斯汀。电视\\,\\jtvx.com \\,\\xarth.com \\,\\twitchtv.com \\,\\twitch.tv \\,\\newjtv.com \\,\\jtvnw.net \\ ,\\wdtinc.com \\,\\imapweather.com \\,\\facebook.com \\,\\starcrafting.com \\],\\streamName中\\:\\jtv_e38UUDs1WLMP9wlc \\,\\过期\\:1385121067,\\服务器\\:\\video15-2.arn01 \\},连接:RTMP://192.16.65.99/app
broadcast_id:7587458512,型:低,展示:低,find_type:DIST},结果
{节点:video12-1.fra01,needed_info:,玩:jtv_bRMbL_ROsoHAegM2,meta_game:暗黑破坏神III:灵魂,收割者video_height:480,比特率 :800,broadcast_part:1,等级:2,老大难:真,集群:FRA01,令牌:bed50de10852dd0f7a24d687f43a10463557b5a3:{\\swfDomains \\:[\\贾斯汀。电视\\,\\jtvx.com \\,\\xarth.com \\,\\twitchtv.com \\,\\twitch.tv \\,\\newjtv.com \\,\\jtvnw.net \\ ,\\wdtinc.com \\,\\imapweather.com \\,\\facebook.com \\,\\starcrafting.com \\],\\streamName中\\:\\jtv_bRMbL_ROsoHAegM2 \\,\\过期\\:1385121067,\\服务器\\:\\video12-1.fra01 \\},连接:RTMP://199.9.254.232/app
broadcast_id:7587458528,型:中等,展示:中,find_type:DIST}]
[
{"node": "video10-2.arn01", "needed_info": "","play": "jtv_FO2coLXGNLzCXtvR","meta_game": "Diablo III: Reaper of Souls", "video_height": 720, "bitrate": 2915.1875, "broadcast_part": 5, "rank": 0, "persistent": "true", "cluster": "arn01", "token": "76b3d8aae0e6eee2bcda8d1acc34103f1a73b595:{\"swfDomains\": [\"justin.tv\", \"jtvx.com\", \"xarth.com\", \"twitchtv.com\", \"twitch.tv\", \"newjtv.com\", \"jtvnw.net\", \"wdtinc.com\", \"imapweather.com\", \"facebook.com\", \"starcrafting.com\"], \"streamName\": \"jtv_FO2coLXGNLzCXtvR\", \"expiration\": 1385121067, \"server\": \"video10-2.arn01\"}", "connect": "rtmp://192.16.65.94/app"
, "broadcast_id": 7587457488, "type": "live", "display": "Source", "find_type": "dist"},
{"node": "video12-1.fra01", "needed_info": "", "play": "jtv_LuAij7o0_zozQ4jY", "meta_game": "Diablo III: Reaper of Souls", "video_height": 720, "bitrate": 1600, "broadcast_part": 1, "rank": 1, "persistent": "true", "cluster": "fra01", "token": "b4db7f59d3b4d723624ee50ed2d69519d1a4cebb:{\"swfDomains\": [\"justin.tv\", \"jtvx.com\", \"xarth.com\", \"twitchtv.com\", \"twitch.tv\", \"newjtv.com\", \"jtvnw.net\", \"wdtinc.com\", \"imapweather.com\", \"facebook.com\", \"starcrafting.com\"], \"streamName\": \"jtv_LuAij7o0_zozQ4jY\", \"expiration\": 1385121067, \"server\": \"video12-1.fra01\"}", "connect": "rtmp://199.9.254.232/app"
, "broadcast_id": 7587458496, "type": "high", "display": "High", "find_type": "dist"},
{"node": "video15-2.arn01", "needed_info": "", "play": "jtv_e38UUDs1WLMP9wlc", "meta_game": "Diablo III: Reaper of Souls", "video_height": 360, "bitrate": 350, "broadcast_part": 1, "rank": 3, "persistent": "true", "cluster": "arn01", "token": "c416673c070354e1a33edcdb535a195463cd9702:{\"swfDomains\": [\"justin.tv\", \"jtvx.com\", \"xarth.com\", \"twitchtv.com\", \"twitch.tv\", \"newjtv.com\", \"jtvnw.net\", \"wdtinc.com\", \"imapweather.com\", \"facebook.com\", \"starcrafting.com\"], \"streamName\": \"jtv_e38UUDs1WLMP9wlc\", \"expiration\": 1385121067, \"server\": \"video15-2.arn01\"}", "connect": "rtmp://192.16.65.99/app"
, "broadcast_id": 7587458512, "type": "low", "display": "Low", "find_type": "dist"},
{"node": "video12-1.fra01", "needed_info": "", "play": "jtv_bRMbL_ROsoHAegM2", "meta_game": "Diablo III: Reaper of Souls", "video_height": 480, "bitrate": 800, "broadcast_part": 1, "rank": 2, "persistent": "true", "cluster": "fra01", "token": "bed50de10852dd0f7a24d687f43a10463557b5a3:{\"swfDomains\": [\"justin.tv\", \"jtvx.com\", \"xarth.com\", \"twitchtv.com\", \"twitch.tv\", \"newjtv.com\", \"jtvnw.net\", \"wdtinc.com\", \"imapweather.com\", \"facebook.com\", \"starcrafting.com\"], \"streamName\": \"jtv_bRMbL_ROsoHAegM2\", \"expiration\": 1385121067, \"server\": \"video12-1.fra01\"}", "connect": "rtmp://199.9.254.232/app"
, "broadcast_id": 7587458528, "type": "medium", "display": "Medium", "find_type": "dist"}]
我找到了最好的方式在电脑上获得流: 的
I found the best way for getting a stream on a PC: Watch twitch.tv/justin.tv/own3d.tv streams in VLC.
它使用该 code:的
It uses this PHP code: http://bog.no-ip.biz/sc2/stream2vlc.php
但我没有关于如何实现它在Android项目中的任何想法。
But I don't have any idea on how to implement it in an Android project.
推荐答案
您可以使用的Adobe AIR 一> SDK可以在Android上运行。这是非常简单的,可以在默认情况下使用RTMP工作。
You can use the Adobe AIR SDK that can run on Android. It is very simple and can work with RTMP by default.
这篇关于如何从一个服务器RTMP到Android的视频流?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!