mikaelzero / youtubevideosample Goto Github PK
View Code? Open in Web Editor NEWYoutubeVideoSample
YoutubeVideoSample
The back button works fine when its in potrait mode.. but after i go fullscreen onEnterSecondScreen()
and press fullScreenIv
button the screen orientation changes to potrait as expected, but the back button becomes non functional..
Any suggestions will be of great help...
I want the bar at the bottom to be full width. Removing the marginRight and marginLeft results in a bug where the bar is at the top of the screen instead of the bottom.
This are the changes I made:
YouTuDraggingView.java Line 406:
mTopViewWrapper.setWidth(Math.round(mTopViewOriginalWidth * videoNodeWidthPercent));
To:
mTopViewWrapper.setWidth(DensityUtil.getScreenW(getContext()));
YouTuDraggingView.java Line 411:
mBackgroundViewWrapper.setWidth(Math.round(mTopViewOriginalWidth * videoNodeWidthPercent));
To:
mBackgroundViewWrapper.setWidth(DensityUtil.getScreenW(getContext()));
Removed:
YouTuDraggingView.java Line 412 and Line 413:
mBackgroundViewWrapper.setMarginRight(videoLeftRightOffset);
mBackgroundViewWrapper.setMarginLeft(videoLeftRightOffset);
when I minimize dragview it always shows same height of min view. I want to increase the height of min view.
Can you please tell me how i can change the height of the min view of dragview?
The code in the YouTubeControlPanel.java
@Override
public void onBufferingUpdate(int progress) {
if (progress != 0) bottom_seek_progress.setSecondaryProgress(progress);
}
does not show the secondary progress bar in the videoView..
How to show buffering bar on top of the seekBar?
有时候快速滑动的时候就挂了。是不是recycle是异步的,2次up事件太短,瞎猜的。
不要这个方法可以不。
java.lang.IllegalStateException: Already in the pool!
at android.util.Pools$SimplePool.release(Pools.java:112)
at android.util.Pools$SynchronizedPool.release(Pools.java:161)
at android.view.VelocityTracker.recycle(VelocityTracker.java:85)
at com.xxx.xxx.player.DispatchLayout.dispatchTouchEvent(DispatchLayout.java:83)
i just wanted to know is it possible to play youtube videos from youtube videoID instead of providing the direct link to the MP4 video file??
private void playVideo() {
mYouTuDraggingView.show();
// something like
mVideoView.setUp("https://youtube.com/watch?v=youTubeVideoID?raw=true");
mVideoView.setUp(songPlaying);
mVideoView.start();
MediaPlayerManager.instance().setScreenScale(ScaleType.SCALE_CENTER_CROP);
}
My requirement is to play videos directly from youtube and retain the functionalities of goMin();
, goMax();
, fullScreenChange();
methods of this awesome project..
I have enabled a Toolbar in the goMin() method of YouTuDraggingView class. Now, when I drag the videoView down, the Toolbar is visible as expected, but the youtube_view displays as a thin line..
When the Toolbar is in GONE state.. the youtube_view displays correctly..
How to make the youtube_view when in goMin() method broad enough when the Toolbar is VISIBLE??
Height of min view is more in notch display phone. How I alter height of warper view.
I the file YoutubeControlPanel.java i show the ImageView
loading
when a user seeks to a new location onStopTrackingTouch();
by adding showUI(loading);
and when the video plays after buffering from the new seek location, i replace the showUI(loading);
to hideUI(loading);
on the onInfo()
method as below..
@Override
public void onInfo(int what, int extra) {
mWhat = what;
mExtra = extra;
if (MediaPlayer.MEDIA_INFO_VIDEO_TRACK_LAGGING == mWhat) {
hideUI(startCenterIv);
showUI(loading);
}
if (MediaPlayer.MEDIA_INFO_BUFFERING_START == mWhat) {
hideUI(startCenterIv);
showUI(loading);
}
if (MediaPlayer.MEDIA_INFO_BUFFERING_END == mWhat) {
showUI(startCenterIv);
hideUI(loading);
}
}
The (MediaPlayer.MEDIA_INFO_BUFFERING_START)
gets delayed by a few seconds, when a user seeks to a new location onStopTrackingTouch();
before the video plays from the new seek location.. I am unable to figure out the reason for the delay..
When I run this app, the event log shows the message.
Session 'app': Install failed.
Installation failed
Rerun
Rerun button makes this event log again. Would you please give me some advice?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.