├── .gitignore
├── CHANGELOG.md
├── README.md
├── vparser-sample
├── AndroidManifest.xml
├── libs
│ └── VParser.jar
├── proguard-project.txt
├── project.properties
├── res
│ ├── drawable-xhdpi
│ │ └── ic_launcher.png
│ ├── layout
│ │ └── activity_main.xml
│ ├── values-sw600dp
│ │ └── dimens.xml
│ ├── values-sw720dp-land
│ │ └── dimens.xml
│ ├── values-v11
│ │ └── styles.xml
│ ├── values-v14
│ │ └── styles.xml
│ └── values
│ │ ├── dimens.xml
│ │ ├── strings.xml
│ │ └── styles.xml
└── src
│ └── com
│ └── yixia
│ └── sample
│ └── vparser
│ └── MainActivity.java
└── vparser
└── VParser.jar
/.gitignore:
--------------------------------------------------------------------------------
1 | # built application files
2 | *.apk
3 | *.ap_
4 |
5 | # files for the dex VM
6 | *.dex
7 |
8 | # Java class files
9 | *.class
10 |
11 | # generated files
12 | bin/
13 | gen/
14 |
15 | # Local configuration file (sdk path, etc)
16 | local.properties
17 |
18 | # Eclipse project files
19 | .classpath
20 | .project
21 |
22 | # Android Studio files
23 | *.iml
24 |
25 | # gradle
26 | build
27 | .gradle
28 |
--------------------------------------------------------------------------------
/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | Change Log
2 | ==========
3 |
4 | Version 2.0.1 *(2013-10-15)*
5 | ---------------------------
6 |
7 | * Fix parse video .
8 |
9 | Version 2.0.0 *(2013-09-23)*
10 | ---------------------------
11 |
12 | * Support parse various resolution.
13 |
14 | Version 1.0.0 *(2013-07-16)*
15 | ---------------------------
16 |
17 | * Support parse video website.
18 |
19 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | VParser
2 | =======
3 |
4 | A powerful Android library to sniff the real video URL from video sites.
5 |
6 | For more information please see [the website](http://yixia.github.io/VParser)
7 |
8 |
9 | License
10 | ==========
11 |
12 |
13 | Copyright (C) 2013 YIXIA.COM
14 |
15 |
16 |
--------------------------------------------------------------------------------
/vparser-sample/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
10 |
11 |
12 |
13 |
18 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/vparser-sample/libs/VParser.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yixia/VParser/850eb33c993d10dd63bcdf67bf665495b0591887/vparser-sample/libs/VParser.jar
--------------------------------------------------------------------------------
/vparser-sample/proguard-project.txt:
--------------------------------------------------------------------------------
1 | # To enable ProGuard in your project, edit project.properties
2 | # to define the proguard.config property as described in that file.
3 | #
4 | # Add project specific ProGuard rules here.
5 | # By default, the flags in this file are appended to flags specified
6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt
7 | # You can edit the include path and order by changing the ProGuard
8 | # include property in project.properties.
9 | #
10 | # For more details, see
11 | # http://developer.android.com/guide/developing/tools/proguard.html
12 |
13 | # Add any project specific keep options here:
14 |
15 | # If your project uses WebView with JS, uncomment the following
16 | # and specify the fully qualified class name to the JavaScript interface
17 | # class:
18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
19 | # public *;
20 | #}
21 |
--------------------------------------------------------------------------------
/vparser-sample/project.properties:
--------------------------------------------------------------------------------
1 | # This file is automatically generated by Android Tools.
2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3 | #
4 | # This file must be checked in Version Control Systems.
5 | #
6 | # To customize properties used by the Ant build system edit
7 | # "ant.properties", and override values to adapt the script to your
8 | # project structure.
9 | #
10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
12 |
13 | # Project target.
14 | target=android-17
15 |
--------------------------------------------------------------------------------
/vparser-sample/res/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yixia/VParser/850eb33c993d10dd63bcdf67bf665495b0591887/vparser-sample/res/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/vparser-sample/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
11 |
12 |
16 |
17 |
24 |
25 |
26 |
31 |
32 |
38 |
39 |
45 |
46 |
--------------------------------------------------------------------------------
/vparser-sample/res/values-sw600dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/vparser-sample/res/values-sw720dp-land/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 | 128dp
8 |
9 |
10 |
--------------------------------------------------------------------------------
/vparser-sample/res/values-v11/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/vparser-sample/res/values-v14/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/vparser-sample/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 16dp
5 | 16dp
6 |
7 |
8 |
--------------------------------------------------------------------------------
/vparser-sample/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | VParser
5 | Hello world!
6 | Website url:
7 | http://v.youku.com/v_show/id_XMzMyNzM5NDUy.html
8 | Parse
9 |
10 |
11 |
--------------------------------------------------------------------------------
/vparser-sample/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
14 |
15 |
16 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/vparser-sample/src/com/yixia/sample/vparser/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.yixia.sample.vparser;
2 |
3 | import android.app.Activity;
4 | import android.os.AsyncTask;
5 | import android.os.Bundle;
6 | import android.text.TextUtils;
7 | import android.view.View;
8 | import android.view.View.OnClickListener;
9 | import android.widget.Button;
10 | import android.widget.EditText;
11 | import android.widget.TextView;
12 |
13 | import com.yixia.vparser.VParser;
14 | import com.yixia.vparser.model.Video;
15 |
16 | public class MainActivity extends Activity implements OnClickListener {
17 |
18 | private VParser mVParser;
19 | private EditText mEditText;
20 | private Button mParserButton;
21 | private TextView mTitleView;
22 | private TextView mUriView;
23 |
24 | @Override
25 | protected void onCreate(Bundle savedInstanceState) {
26 | super.onCreate(savedInstanceState);
27 | setContentView(R.layout.activity_main);
28 | mVParser = new VParser(this);
29 | mEditText = (EditText)findViewById(R.id.et_website);
30 | mParserButton = (Button)findViewById(R.id.bt_parser);
31 | mParserButton.setOnClickListener(this);
32 | mTitleView = (TextView)findViewById(R.id.tv_title);
33 | mUriView = (TextView)findViewById(R.id.tv_uri);
34 | }
35 |
36 | @Override
37 | public void onClick(View v) {
38 | String website = mEditText.getText().toString();
39 | if (TextUtils.isEmpty(website)) {
40 | return;
41 | }
42 | new AsyncTask