Streaming media development - Tencent sports NBA video on demand analysis

Recommended for you: Get network issues from WhatsUp Gold. Not end users.

In front of tournaments and ranking, here resolution video, selected is on demand Tencent physical links inside.

First or related information to package a save on demand video class

package com.jwzhangjie.model;

import java.io.Serializable;
/**
 * Video on demand
 * @author jwzhangjie
 *
 */
public class VideoDemandModel implements Serializable{

	private static final long serialVersionUID = 1L;
	
	/**
	 * The title of the video
	 */
	private String title;
	/**
	 * Video images
	 */
	private String img;
	/**
	 * Site link video
	 */
	private String url_site;
	/**
	 * The real link video
	 */
	private String url_real;
	/**
	 * Video upload time
	 */
	private String dateTime;
	
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getImg() {
		return img;
	}
	public void setImg(String img) {
		this.img = img;
	}
	public String getUrl_site() {
		return url_site;
	}
	public void setUrl_site(String url_site) {
		this.url_site = url_site;
	}
	public String getUrl_real() {
		return url_real;
	}
	public void setUrl_real(String url_real) {
		this.url_real = url_real;
	}
	public String getDateTime() {
		return dateTime;
	}
	public void setDateTime(String dateTime) {
		this.dateTime = dateTime;
	}
	
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("Title: ".Append (title).Append ("); picture link: ").append(img);
		builder.append(  "Site link: ");.Append (url_site).Append (" upload time: ").append(dateTime);
		return builder.toString();
	}
	
}

Then is the analysis Webpage, I selected Webpage is

package com.jwzhangjie.parser.ranking;

import java.util.ArrayList;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;

import com.jwzhangjie.model.VideoDemandModel;

public class VideoDemand {

	public ArrayList<VideoDemandModel> getVideoDemand(String url){
		ArrayList<VideoDemandModel> listData = new ArrayList<VideoDemandModel>();
		try {
			Document doc = Jsoup.connect(url).get();
			Element ul = doc.getElementById("piclist");
			Elements lists = ul.getElementsByTag("li");
			for (Element video : lists) {
				VideoDemandModel model = new VideoDemandModel();
				Element href = video.select("div.bdhui_pic").first().getElementsByTag("a").first();
				model.setUrl_site(href.attr("href"));
				Element img = href.getElementsByTag("img").first();
				model.setImg(img.attr("src"));
				model.setTitle(img.attr("alt"));
				model.setDateTime(video.select("td.lh16").text().replace(" ", " "));
				System.out.println(model.toString());
				listData.add(model);
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
		return listData;
	}
}

The analytical results are as follows:

Title: Video: 8, Janeway's air Ellis 1.9 seconds up winner picture link: the site link: upload time: December 8th?15:31
Title: Video: the 8 best player James cut 21+14+8's victory over the picture link: the site link: upload time: December 8th?15:30
Title: Video: the 8 best shot Ellis 1.9 seconds to jump shot precision image links: site link: upload time: December 8th?14:22
Title: Video: the 8 best cap Henson send Livingston nail plate blood cap picture links: site link: upload time: December 8th?14:21
Title: Video: the best 8 steals Bogut Miao never look back image links: site link: upload time: December 8th?14:21
Title: Video: the 8 best Gibson dunk off across the buckle Niland image links: site link: upload time: December 8th?13:57
Title: Video: King 112-102 Sir Mai Kramer buzzer overtime wins image links: site link: upload time: December 8th?13:56
Title: Video: 111-100 Indiana George 28+6 win over Spurs cut image links: site link: upload time: December 8th?13:55
Title: Video: Warrior 108-82 grizzly curry 22+15 Tu bear stop losing streak image links: site link: upload time: December 8th?13:54
Title: Video: the Clippers 82-88 rider Erwin 20+6 Paul stop streak image links: site link: upload time: December 8th?13:53
Title: Video: Birdman positive and anti complement Zhetian hand nail feeding plate large cap picture links: site link: upload time: December 8th?13:52
Title: Video: stone free throws to complete a career 24000th shooting image links: site link: upload time: December 8th?11:12
Title: Video: Manu joint send hit the pass from Duncan pick and roll the ball pick blue picture links: site link: upload time: December 8th?11:12
Title: Video: Wade made a mistake by steals Ba Mo Tefei buckle ignore James Huang image links: site link: upload time: December 8th?10:10
Title: Video: after Paul send accurate assists Jordan soon flying empty ground image links: site link: upload time: December 8th?10:09
Title: Video: Parke this season highlights 360 turn and pull rod sharp breakthrough picture links: site link: upload time: December 8th?10:08
Title: Video: 7 days to harden dunk incense Alpert flying fury deduction image links: site link: upload time: December 7th?15:31
Title: Video: the 7 best dunks Taylor ignored during Anti flying dunks image links: site link: upload time: December 7th?15:30
Title: Video: the 7 best cap ora deep single palmar blood hat Anthony image links: site link: upload time: December 7th?15:30
Title: Video: Pioneer 3 collection 23 investment and refresh in franchise history picture link 17: the site link: upload time: December 7th?15:09
Title: Video: the best 7 steals tall, rich and handsome and broken ultra remote help harden image links: site link: upload time: December 7th?15:08
Title: Video: the best 7 assists Vasquez caught sending shell flat pass image links: site link: upload time: December 7th?15:08
Title: Video: Sir 98-130 pioneer A De 20+15 home victory over image links: site link: upload time: December 7th?15:07
Title: Video: magic board of Warcraft 58 rockets Haddon away victory over the picture link: the site link: upload time: December 7th?15:06
Title: Video: Vasquez hammer to pass test God was the dunk picture link: site link: upload time: December 7th?13:39
Title: Video: Gasol made a mistake by after blasting Mai Kramer back dunk image links: site link: upload time: December 7th?13:39
Title: Video: Knight 89-108 Eagle Kyle Korver 3 points a record winning picture links: site link: upload time: December 7th?11:48
Title: Video: Deluozan careening into the basket smashed no one can prevent the image links: site link: upload time: December 7th?11:47
Title: Video: the Philadelphia 88-105 lynx Maikawei out Philadelphia accidentally image links: site link: upload time: December 7th?11:46
Title: Video: muskmelon crazy rebound crazy fan cap Nicks fight back image links: site link: upload time: December 7th?10:52

Select the first video to do the real video parsing out of the connection as follows: the use of VLC can be normal play

http://222.73.3.75/vkp.tc.qq.com/c0013ghdds8.mp4?vkey=CBA83E4B773DB0DBB3C5010896C3E4938C700EF47AC30134F2FD8C300E3D57B857508AF5A0418D53&br=66&platform=0&fmt=mp4&level=3

Screenshot below


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download

Posted by Chester at December 13, 2013 - 11:11 PM