Coder Social home page Coder Social logo

Comments (6)

zagahr avatar zagahr commented on July 22, 2024 3

No, not for now. But it would be nice to use fullscreen or PiP mode in the future.

from conferences.digital.

kandelvijaya avatar kandelvijaya commented on July 22, 2024 1

This is interesting in both how youtube works and what we want to do. Just to be clear: are there any significant drawbacks for using YoutubeWebView for now?

from conferences.digital.

arguiot avatar arguiot commented on July 22, 2024

Great idea πŸ‘! I wouldn't recommend re-uploading videos, but what you can do is take the video URL from the youtube player and use AVPlayer from that. Many apps do that (so I believe it's legal).

In order to do that, you can use https://github.com/mojilala/YoutubeSourceParserKit or do something like IINA: download the video before reading it using youtube-dl

from conferences.digital.

zagahr avatar zagahr commented on July 22, 2024

Thank you for your feedback!

Unfortunately frameworks like YouTubeSourceParserKit are against YouTubβ€˜s ToC.

β€žWarning: This repo is for educational purposes. This is not approved by the ToC of YouTube. Use at own risk.β€œ

from conferences.digital.

rolandkakonyi avatar rolandkakonyi commented on July 22, 2024

Hi @zagahr! What about adding a fullscreen button and grow the WKWebView to take the whole window and trigger it become full screen?
This is just an idea from top of my head. It could be a lite solution to support full screen.

Note: I have 0 mac development experience, so I'm not sure if this can work, but would be nice.

from conferences.digital.

paulofierro avatar paulofierro commented on July 22, 2024

WKWebView's PIP support appears to be currently iOS only. Fullscreen could be possible via a custom button that handles this transition manually or uses the Javascript Full Screen API

Unfortunately following Youtube's ToS leads to a worse user experience, which is probably why this particular section is often ignored πŸ˜•

I would love to use the native player instead (and enable the PIP and fullscreen buttons) πŸ˜…

from conferences.digital.

Related Issues (17)

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.