Code Monkey home page Code Monkey logo

avplayer-swiftui's Introduction

Hi there ๐Ÿ‘‹

I'm an iOS developer, which has been my focus since 2012.

  • Check out my apps on the AppStore
  • Follow me on Twitter, though I don't tweet much!
  • Connect with me on LinkedIn, though I don't use it much!
  • Check out my blog posts on Medium (for free, of course!), though I don't blog much!
  • Check out my website, though it's probably not very up to date!
  • Check out my StackOverflow profile, though I'm not very active!

avplayer-swiftui's People

Contributors

chrismash 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  avatar  avatar  avatar  avatar  avatar

avplayer-swiftui's Issues

How to change the Video played

very helpful code and is exactly doing what I was looking for. The only thing where I struggle is how to change the video to be played. Did you have any thoughts on that ?

PlayerDurationObserver not publishing changes

i used the code for my project but couldn't get the PlayerDurationObserver working whenever an item is changed tin the AVplayer. i tried changing audio items both in the View init function and onAppear function .

As a result currentDuration is always 0.

Video view is square and has grey borders

In this example when playing the video, the video view is square (375 * 375) and has the video inside it with grey borders top and bottom.

Simulator Screen Shot - iPhone 13 mini - 2022-09-13 at 16 23 40

How can I get rid of those grey borders and have the video view hug the borders of the video itself?

[feature] quality change support

Hello @ChrisMash . I have an HLS master file that contains 4 quality types. I would like to switch between qualities smoothly while video is playing. Here how my hls file looks like (https://bv-storage.belet.me/videos/UCEkd3Rj_MSv8v6aA0h1G4fg/KEInn8yLDqM/master.m3u8)

#EXTM3U
#EXT-X-INDEPENDENT-SEGMENTS

#EXT-X-MEDIA:TYPE=AUDIO,URI="audio/audio.m3u8",GROUP-ID="audio",LANGUAGE="en",NAME="ENGLISH",AUTOSELECT=YES,CHANNELS="2"

#EXT-X-STREAM-INF:BANDWIDTH=950376,AVERAGE-BANDWIDTH=728275,CODECS="avc1.4d401e,mp4a.40.2",RESOLUTION=640x360,FRAME-RATE=29.970,VIDEO-RANGE=SDR,AUDIO="audio",CLOSED-CAPTIONS=NONE
360p/playlist.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=4813550,AVERAGE-BANDWIDTH=3158741,CODECS="avc1.640020,mp4a.40.2",RESOLUTION=1280x720,FRAME-RATE=59.960,VIDEO-RANGE=SDR,AUDIO="audio",CLOSED-CAPTIONS=NONE
720p/playlist.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=6968449,AVERAGE-BANDWIDTH=5007913,CODECS="avc1.64002a,mp4a.40.2",RESOLUTION=1920x1080,FRAME-RATE=59.960,VIDEO-RANGE=SDR,AUDIO="audio",CLOSED-CAPTIONS=NONE
1080p/playlist.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=1609228,AVERAGE-BANDWIDTH=1232391,CODECS="avc1.4d401f,mp4a.40.2",RESOLUTION=854x480,FRAME-RATE=29.970,VIDEO-RANGE=SDR,AUDIO="audio",CLOSED-CAPTIONS=NONE
480p/playlist.m3u8

could you guide me about how i can do it. I found an open source project about it but couldn't convert it to swiftui. Here it is:
https://github.com/IvanoBilenchi/Adaptive-Video-Player

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.