Comments (2)
Determined solution through much trial and error.
Editing capacitor.config.json mentioned above is not necessary, but did following on my capacitor android project.
Add <preference name="YouTubeDataApiKey" value="my_youtube_api_key" />
to app/src/main/res/xml/config.xml.
Add <string name="activity_name">my_bundle_id</string>
to app/src/main/res/values/strings.xml - where my_bundle_id
is like io.ionic.starter
.
from cordovayoutubevideoplayer.
I added the following to capacitor.config.json:
"cordova": {
"preferences": {
"YouTubeDataApiKey": "<my_youtube_api_key>"
}
}
Then ran npx cap sync
. This added <preference name="YouTubeDataApiKey" value="[my_youtube_api_key]" />
to app/src/main/res/xml/config.xml. But still when I ran the code gave me the following:
AAPT: error: resource string/activity_name (aka <my bundle name>/activity_name) not found
.
Pointing to code in debud/AndroidManifest.xml
android:name="com.bunkerpalace.cordova.YouTubeActivity"`
from cordovayoutubevideoplayer.
Related Issues (16)
- Build Fails HOT 2
- How to disable controls? HOT 4
- Audio playing through ear speaker only
- In IOS Youtube video player is not closing automatically after video is complete.
- Analysis about Youtube Quotas HOT 1
- Android Portrait mode not supported HOT 1
- The video on Android stops after a few seconds to pause. HOT 6
- Black screen when playing Youtube video second time. HOT 4
- in iOS, Page close suddenly when trying to open Youtube HOT 4
- android 13 does not open youtube player in android
- Getting 400 error response on youtube HOT 4
- iPhone app crash when video is deleted from YouTube HOT 2
- Event Close Youtube when youtube is running HOT 4
- IOS build Fail HOT 9
- Video stuttering and pausing while loading. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordovayoutubevideoplayer.