Skip to content

subair-zufi/flutter_youtube_vimeo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flutter_youtube_vimeo

simple YouTube, Vimeo video player

Getting Started

For help getting started with Flutter, view our online documentation.

iOS

In order for plugin to work correctly, you need to add new key to ios/Runner/Info.plist

<key>NSAppTransportSecurity</key>
<dict>
    <key>NSAllowsArbitraryLoads</key>
    <true/>
    <key>NSAllowsArbitraryLoadsInWebContent</key>
    <true/>
</dict>

NSAllowsArbitraryLoadsInWebContent is for iOS 10+ and NSAllowsArbitraryLoads for iOS 9.

Android

Ensure the following permission is present in your Android Manifest file, located in /android/app/src/main/AndroidManifest.xml:

<uses-permission android:name="android.permission.INTERNET"/>

Works only in Android API 20 and above (From Android 5.0)

How it works

You can directly apply Youtube,Vimeo Video ID

Image of Yaktocat Image of Yaktocat

YouTube

MaterialApp(
      home: Scaffold(
        body: Container(
            child: YouVimPlayer('youtube','AGBjI0x9VbM')), //VideoID
      ),
    );

Vimeo

MaterialApp(
      home: Scaffold(
        body: Container(
            child: YouVimPlayer('vimeo','447872160')), //VideoID
      ),
    );

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 53.2%
  • Ruby 21.0%
  • HTML 17.1%
  • Swift 6.3%
  • Kotlin 1.8%
  • Objective-C 0.6%