GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Coder-ACJHP/UICVideoPlayerView: Video player with play, pause, forward, rewind, seek, mute functionalities for IOS

BranchesTags
Open more actions menu

Latest commit

 

History

15 Commits
15 Commits

Folders and files

NameName
Last commit message
Last commit date
UICVideoPlayer.xcodeproj
UICVideoPlayer.xcodeproj
 
 
UICVideoPlayer
UICVideoPlayer
 
 
UICVideoPlayerTests
UICVideoPlayerTests
 
 
.DS_Store
.DS_Store
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
videoPlayer.gif
videoPlayer.gif
 
 

Repository files navigation

UICVideoPlayerView

Video player with play, pause, forward, rewind, seek, mute functionalities for IOS

Screen shot (.gif)

How to use?

1 - Download UICVideoPlayerView.swift file (inside UICVideoPlayer folder) with it's assets (inside Assets.xcassets folder) and import it into your project. (Single .swift file and assests "icons")
2 - Allow your application to support arbitrary loads from info.plistto allow http requests
3 - Setup UICVideoPlayerView and add it to your view

Code exmple:

private var videoPlayer: UICVideoPlayerView!

let calculatedHeight = self.view.frame.width * 9 / 16
let videoLayerFrame = CGRect(x: 0, y: 0, width: self.view.frame.width, height: calculatedHeight)
videoPlayer = UICVideoPlayerView(frame: videoLayerFrame)
videoPlayer.videoLink = sampleVideoLink
videoPlayer.delegate = self
view.addSubview(videoPlayer)

// Delegate method :
func dismiss(_ videoView: UICVideoPlayerView) {
// Dismiss videoPlayer view here or what ever you want
}

Note: For more information browse example project (DummyViewController)

No need to any other thing, so it's features like :

  • When the video fail to load it shows error message.
  • It shows streaming progress
  • When video load will start to play.
  • Shows replay button when video finished and resets slider.
  • When changing video link it will prepare and update itself immediatly.
  • Shows loading spinner depended on buffer status.
  • You can share video link to social media and other chanels (new).
  • You can change settings from settings context menu (new).
Note: This project is sample so only "dismiss & cancel" option is working in menu others not!

Requirements

Xcode 9 or later
iOS 10.0 or later
Swift 4 or later

Next update will add :

1 - Support play list of videos.
2 - Next and previous buttons.
3 - Support landscape mode.

Licence :

The MIT License (MIT)

About

Video player with play, pause, forward, rewind, seek, mute functionalities for IOS

Topics

avplayeravplayeritemcustom-viewios-swiftswiftvideo-playervideo-stream

Resources

Readme
MIT license
Activity

Stars

6 stars

Watchers

2 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.