GithubHelp home page GithubHelp logo

youtubevideosample's People

Contributors

mikaelzero avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

youtubevideosample's Issues

Back Button not working after onExitSecondScreen()

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...

DispatchLayout without marginRight and marginLeft

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);

Set height of min view

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?

Already in the pool!

有时候快速滑动的时候就挂了。是不是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)

How to play YouTube Vidoes directly via youtube videoID

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..

goMin() method with Toolbar is too thin..

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??

onInfo() method loads after a few seconds onStopTrackingTouch();

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..

Session 'app': Install failed

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.