사용자 정의 재생 옵션을 제공하는 앱에 YouTube 동영상을 원활하게 삽입할 수 있는 플러터 패키지입니다. 안드로이드, iOS, macOS, 윈도우 등 여러 플랫폼을 지원하며, 개발자가 비디오 콘텐츠를 통합할 때 유연성을 제공합니다. 자동 재생, 반복 재생, 사용자 지정 컨트롤 등의 기능을 포함한 간단한 API를 통해 동영상을 로드하고 제어할 수 있습니다. 교육 플랫폼, 비디오 튜토리얼 또는 엔터테인먼트 앱과 같은 풍부한 미디어 경험을 필요로 하는 앱에 적합합니다.
사용 사례
모바일 및 데스크톱 앱에 YouTube 동영상 삽입하기
비디오 튜토리얼 인터페이스 만들기
미디어가 풍부한 교육 콘텐츠 만들기
소셜 앱에 비디오 피드 통합하기
스트리밍 또는 엔터테인먼트 플랫폼 개발
주요 기능
크로스 플랫폼 지원 (Android, iOS, macOS, Windows)
사용자 정의 가능한 플레이어 컨트롤
자동 재생 및 루프 옵션
반응형 비디오 크기
Flutter UI와의 간편한 통합
적합한 대상
교육 앱 개발자
미디어 및 엔터테인먼트 앱
콘텐츠 창작자
비디오 통합이 필요한 앱 빌더
Flutter 초보자가 미디어 기능 탐색 중
고려 사항
비디오 로딩을 위해 인터넷 연결이 필요합니다
사용자 정의 테마를 위해 추가 스타일링이 필요할 수 있습니다
유튜브 비디오 URL로 제한
다중 플레이어와 함께 가능한 성능 영향
YouTube의 임베드 API 안정성에 의존합니다
원본 README
연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.
youtube_player_embed
youtube_player_embed is a lightweight and customizable Flutter package that allows developers to embed YouTube videos, including YouTube Shorts, directly into their Flutter applications using an InAppWebView. With this package, you can seamlessly integrate videos with advanced event handling, autoplay, mute, and aspect ratio customization.
Features
🎥 Embed YouTube Videos and Shorts easily with minimal configuration.
🔄 Autoplay Support for instant video playback.
🔇 Mute Option for silent playback.
📱 Responsive Design supporting both horizontal (16:9) and vertical (9:16) videos.
💡 Customizable options to remove YouTube branding buttons for a cleaner UI.
🔗 Direct Shorts Integration for embedding vertical YouTube Shorts seamlessly.
⏰ Advanced Event Listeners for video state updates, time tracking, seek events, and mute/unmute detection.
🔑 Enhanced Control to programmatically remove share and branding buttons dynamically.
⏯ Full-Screen Support with seamless entry and exit.
⏹️ Playback Controls: Play, Pause, Seek, Mute, and Unmute programmatically.
🔍 Custom Video Titles: Dynamically set or hide video titles.
🚀 Performance Optimized: Lightweight and efficient for a smoother user experience.
Installation
Add the following dependency to your pubspec.yaml:
If you still have this problem, try to edit iOS Podfile like this
Edit the Podfile
Add the following to your iOS Podfile if you encounter issues:
target 'Runner' do
use_frameworks! # required by flutter_inappwebview
...
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '5.0' # required by flutter_inappwebview
config.build_settings['ENABLE_BITCODE'] = 'NO'
end
end
end