question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to share player between two views

See original GitHub issue

Idea: Implement full screen with this behavior

  • nonFullScreenView show video and when click on full screen icon it go to full screen by
  • show FullScreenView which is in landscape mode and continue from latest time in video
  • when user click back or click to exit full screen return to old nonFullScreenView with latest time in video

i think it will be easy somehow if player is shared between two views

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
malliaridiscommented, Oct 2, 2020

Answering the question of #633 I figured out that the full screen button from the default ui controller matches the parent’s dimensions only. Returning back from full screen the player falls back to the 16:9 ratio. The scaling and dimensioning seems to require some work to fix and add proper behavior, since the youtube interface also adds unnecessary padding / borders. There is however already an issue for this (#71).

1reaction
RyanVDWcommented, Sep 3, 2020

i had to implement a simple class that held the current state time etc of the video and passed them back and forward. this was the best way i was able to get this working

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Stream Multiple Views To Twitch From One PC Using ...
Have you ever wanted to squad stream on Twitch, but have never been able to? Well, this easy to follow OBS tutorial will...
Read more >
Displaying AVPlayer content on two views simultaneously
My goal was to create another AVPlayerLayer, and send it the same player so that both players are playing the same video at...
Read more >
About YouTube ads and view metrics - Google Ads Help
Learn more about YouTube video metrics, including impressions, paid views, organic views, Interactions, Engagement, View rate, “Video played to” metrics, Earned ...
Read more >
Sharing state between views with MVVM - Martin Richter
But this approach would cause there to be two separate arrays of selected players (one in each view model), and some imperative code...
Read more >
Use multitasking on your iPad - Apple Support (IN)
How to use the Dock to open multiple iPad apps · If you drag the app to the left or right edge of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found