---
title: "网络直播电视之寻找直播地址（上）"
author: "he91_com"
date: "2012-12-28T16:20:00Z"
tags: []
slug: "untitled"
draft: false
lastmod: "2013-07-16T12:53:37Z"
id: 1907741
url: "https://he91-com.iteye.com/blog/1907741"
---

这种方式也不知道能坚持多长时间，暂时是没有什么问题。方法如下：

访问[http://trailers.apple.com/appletv/index.xml](http://trailers.apple.com/appletv/index.xml)

可以看到**'http://atv.jianguoke.com/appletv/tv/tv.xml');**"onPlay=""&gt;

打开[**http://atv.jianguoke.com/appletv/tv/tv.xml**](http://atv.jianguoke.com/appletv/tv/tv.xml)

**可以看到直播电视的分类 打开央视直播**

[http://atv.jianguoke.com/appletv/tv/list\_1.xml](http://atv.jianguoke.com/appletv/tv/list_1.xml)

可以看到cctv1

**[http://atv.jianguoke.com/appletv/tv/live\_1\_1.xml](http://atv.jianguoke.com/appletv/tv/live_1_1.xml)**

继续打开可以得到新版的cctv1地址

[http://tvhd.ak.live.cntv.cn/cache/1\_/seg0/index.m3u8](http://tvhd.ak.live.cntv.cn/cache/1_/seg0/index.m3u8)

通过这种方法便可以拿到直播地址了。如果拿人工的方式获取相关数据，毫无疑问累死人不偿命的。我会将有关这些XML解析的方法和函数进行公布，希望给大家提供一定的帮助。