Skip to content

Commit

Permalink
M1-1
Browse files Browse the repository at this point in the history
  • Loading branch information
ashqal committed Apr 24, 2016
1 parent 8290502 commit e442ae8
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
26 changes: 24 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,14 @@ It is a lite library to render 360 degree panorama video for Android.

## Last Commit
**`-SNAPSHOT`**
* Bitmap supported. For more info, See [BitmapPlayerActivity](https://github.com/ashqal/MD360Player4Android/tree/master/app/src/main/java/com/asha/md360player4android/BitmapPlayerActivity.java) in demo.

## Release Note
**1.1.0**
* Bitmap supported. For more info, See [BitmapPlayerActivity](https://github.com/ashqal/MD360Player4Android/tree/master/app/src/main/java/com/asha/md360player4android/BitmapPlayerActivity.java) in demo.
* Add callback if the TYPE_ROTATION_VECTOR is NOT supported.
* Use more divisions in sphere and load `.obj` file in working thread.
* Bug fix: Can not drag after setOnClickListener.
* Switch to [IjkMediaPlayer](https://github.com/Bilibili/ijkplayer) in demo.

**1.0.0**
* Motion Sensor
Expand All @@ -34,7 +39,7 @@ allprojects {
```
```java
dependencies {
compile 'com.github.ashqal:MD360Player4Android:1.0.0'
compile 'com.github.ashqal:MD360Player4Android:1.1.0'
}
```

Expand Down Expand Up @@ -108,6 +113,23 @@ public class MDVRLibraryDemoActivity extends MediaPlayerActivity {
}
```

### Feature not support callback
add `ifNotSupport` to builder, e.g. [VideoPlayerActivity#createVRLibrary](https://github.com/ashqal/MD360Player4Android/blob/master/app/src/main/java/com/asha/md360player4android/VideoPlayerActivity.java)
```java
.ifNotSupport(new MDVRLibrary.INotSupportCallback() {
@Override
public void onNotSupport(int mode) {
String tip = mode == MDVRLibrary.INTERACTIVE_MODE_MOTION
? "onNotSupport:MOTION" : "onNotSupport:" + String.valueOf(mode);
Toast.makeText(VideoPlayerActivity.this, tip, Toast.LENGTH_SHORT).show();
}
})
```

### Deal with setOnClickListener
[Deal with setOnClickListener](https://github.com/ashqal/MD360Player4Android/wiki/Deal-with-setOnClickListener)


## Reference
* [HTY360Player(360 VR Player for iOS)](https://github.com/hanton/HTY360Player)
* [NitroAction360(VR player for Android)](https://github.com/Nitro888/NitroAction360)
Expand Down
Binary file modified app/demo/preview.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_demo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content">
<EditText
android:text="http://vod.moredoo.com/u/7575/m3u8/854x480/25883d97c738b1be48d1e106ede2789c/25883d97c738b1be48d1e106ede2789c.m3u8"
android:text="http://doubo.ufile.ucloud.com.cn/qihuansenlin.mp4"
android:id="@+id/edit_text_url"
android:layout_width="0dp"
android:layout_weight="4"
Expand Down

0 comments on commit e442ae8

Please sign in to comment.