@@ -32,69 +32,8 @@ The normal videoview on Android is very costly in terms of performance. Also, du
3232
3333```
3434
35- ![ ] ( previews/videolayout1.gif ) ![ ] ( previews/videolayout2.gif )
36-
37- <img src =" previews/videolayout1.gif " width =" 480 " >
38-
39- ### Sticky and Free Mode
40-
41- #### Sticky FLOAT_MOVE
42-
43- FlyingVideo automatically snaps up or down according to the position of the screen where you left the panel.
44-
45- ``` java
46- FlyingVideo . get(MainActivity . this )
47- .setFloatMode(TaskCoffeeVideo . FLOAT_MOVE. STICKY )
48- .setVideoStartSecond((mTracker == null ) ? 0 : mTracker. getCurrentSecond())
49- .coffeeVideoSetup(videoId)
50- .show(view);
51- ```
52-
53-
54- #### Free FLOAT_MOVE
55-
56- FlyingVideo never sticks on constant position, it stays on the position where you left.
57-
58- ``` java
59- FlyingVideo . get(MainActivity . this )
60- .setFloatMode(TaskCoffeeVideo . FLOAT_MOVE. FREE )
61- .setVideoStartSecond((mTracker == null ) ? 0 : mTracker. getCurrentSecond())
62- .coffeeVideoSetup(videoId)
63- .show(view);
64- ```
65-
66- ![ Sticky] ( previews/untitledsticky.gif ) ![ Free] ( previews/untitlednosticky.gif )
67-
68- ### Initial FlyGravity Mode
69-
70- #### BOTTOM FlyGravity
71-
72-
73- FlyVideo appears bottom of the screen when opened.
74-
75- ``` java
76- FlyingVideo . get(MainActivity . this )
77- .setFloatMode(TaskCoffeeVideo . FLOAT_MOVE. FREE )
78- .setVideoStartSecond((mTracker == null ) ? 0 : mTracker. getCurrentSecond())
79- .coffeeVideoSetup(videoId)
80- .setFlyGravity(TaskCoffeeVideo . FLY_GRAVITY. BOTTOM )
81- .show(view);
82- ```
83-
84- #### TOP FlyGravity
85-
86- FlyVideo appears top of the screen when opened.
87-
88- ``` java
89- FlyingVideo . get(MainActivity . this )
90- .setFloatMode(TaskCoffeeVideo . FLOAT_MOVE. FREE )
91- .setVideoStartSecond((mTracker == null ) ? 0 : mTracker. getCurrentSecond())
92- .coffeeVideoSetup(videoId)
93- .setFlyGravity(TaskCoffeeVideo . FLY_GRAVITY. TOP )
94- .show(view);
95- ```
96-
97- ![ BOTTOM] ( previews/untitledbottom.gif ) ![ TOP] ( previews/untitledtop.gif )
35+ <img src =" previews/videolayout1.gif " width =" 350 " >
36+ <img src =" previews/videolayout2.gif " width =" 350 " >
9837
9938## Implementation
10039
@@ -117,20 +56,6 @@ dependencies {
11756 }
11857```
11958
120- ### Used Libraries
121-
122- * ** Henning Dodenhof** - * Circular ImageView* - [ hdodenhof] ( https://github.com/hdodenhof/CircleImageView )
123- * ** Pierfrancesco Soffritti** - * android-youtube-player* - [ PierfrancescoSoffritti] ( https://github.com/PierfrancescoSoffritti/android-youtube-player )
124-
125- #### NOTE:
126-
127- This library is designed not to violate the rules. However, all problems that may occur are under your responsibility.
128-
129- Before publishing your app to GooglePlay please make sure that you have read Youtube and Google Terms;
130- * [ Terms] ( https://developers.google.com/youtube/terms/developer-policies )
131-
132-
133-
13459## License
13560
13661```
0 commit comments