PierfrancescoSoffritti / android-youtube-player

YouTube Player library for Android and Chromecast, stable and customizable.
https://pierfrancescosoffritti.github.io/android-youtube-player/
MIT License
3.4k stars 756 forks source link

Regarding the problem of dual-screen video display, use Presentation to implement it #1092

Open leosky07 opened 9 months ago

leosky07 commented 9 months ago

I have a set-top box that supports VGA and HDMI output. I have some operation interfaces and video playback on VGA. How can I synchronize VGA video to HDMI? Only the video part of VGA is synchronized instead of synchronizing everything. Is this possible? Realized?

PierfrancescoSoffritti commented 9 months ago

Hi, I don't understand how this question is related to the library?

leosky07 commented 9 months ago

@PierfrancescoSoffritti Hello, let me first describe my usage scenario: I am developing an APP that plays videos. This APP runs on a TV set-top box. This set-top box supports VGA and HDMI output and the set-top box is connected to two screens. I use your library It is used to play YouTube videos on a VGA screen. I want to display the video being played on the HDMI screen as well. What do I need to do to achieve this function? When I use mediaplayer to play videos, I use MediaPlayer.setDisplay(SurfaceHolder sh) to easily display the video on the VGA and HDMI screens at the same time. I want to know if YouTubeplayer can implement this function?

billdizl commented 9 months ago

i think u can implement this function, but not lib to consider

leosky07 commented 9 months ago

@billdizl Because this library has great support for playing YouTube videos and the playback is very smooth, so I used this library. Can you share with me other methods that can achieve my needs? Thank you.

PierfrancescoSoffritti commented 8 months ago

This library provides a view that you can use to play videos, it's up to you where you show it. We don't have methods such as MediaPlayer.setDisplay(SurfaceHolder sh).

What is preventing you from showing the view where you need it?