Skip to content

hlwanhoj/YouTube-Embedded-Player-in-UICollectionView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YouTube-Embedded-Player-in-UICollectionView

To demonstrate the pitfall when using YouTube Embedded Player in UICollectionView

Assuming the view hierarchy is like: 

UICollectionView
┗ UICollectionViewCell 
 ┗ WKWebView

YouTube Embedded Player is loaded in the WKWebView.

Once the user interacts with the video player (like play, pause), delegate events like willDisplayCell, didEndDisplayingCell stop working.

This project is to demonstrate the problem and the workaround implemented using CADisplayLink.

About

To demonstrate the pitfall when using YouTube Embedded Player in UICollectionView

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages