Discussion Forums  >  Audio, Video, Playing, Recording

Replies: 11    Views: 354

Sophie Bowman
Lost but trying
Profile
Posts: 9
Reg: Sep 13, 2013
Australia
1,640
08/06/14 01:59 AM (9 years ago)

youtube ID on the youtube streamer plugin

I can't get the video to work on my App. When i first put the video plugin on another video played so i know the plugin is downloaded properly i just cant figure out how to put the youtube video on i want to. This is the youtube video i want to put on my project, and i have highlighted what i think the youtube ID is https://www.dropbox.com/s/qhxgxgu35y7o4ou/Screenshot%202014-08-06%2018.36.01.png Then this is what the project looks like when putting in the link: https://www.dropbox.com/s/j218mvo3faukv6y/Screenshot%202014-08-06%2018.39.57.png but on the app it just says loading. i did go to this site, but don't understand it, i'm not very experienced with coding. https://www.dropbox.com/s/on6pdws63f27sqy/Screenshot%202014-08-06%2018.44.17.png Thank you
 
rburns50
buzztouch Evangelist
Profile
Posts: 168
Reg: May 12, 2014
Bilston - Engla...
9,130
like
08/06/14 02:23 AM (9 years ago)
Hi Sophie, Have you marked the video private? Also, the video id is normally the string before &list. So I think your video id is Y4eQc8onl64 - try that.
 
Sophie Bowman
Lost but trying
Profile
Posts: 9
Reg: Sep 13, 2013
Australia
1,640
like
08/06/14 02:59 AM (9 years ago)
It was private so i made it public and used the id you sent above :) The simulator for the App still has a black screen and just says loading. If theres anything else you can think of that would be great:) Thank you :)
 
rburns50
buzztouch Evangelist
Profile
Posts: 168
Reg: May 12, 2014
Bilston - Engla...
9,130
like
08/06/14 03:09 AM (9 years ago)
Simulator may well have an issue loading - always better on a real device this one :)
 
Adam
Aspiring developer
Profile
Posts: 247
Reg: Oct 23, 2010
Southern Califo...
4,470
like
08/06/14 05:55 AM (9 years ago)
Is the video allowed to be watched on the YouTube mobile app? If no, it won't load in your own app. Adam
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
08/06/14 07:48 AM (9 years ago)
I include the PL prefix with my id
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
08/06/14 11:03 AM (9 years ago)
For example in this playlist url: https://www.youtube.com/watch?v=2q7XGuH2Q-s&list=PLuR1PJnGR-Igj4mNcr6_zDkQ3DTVA6wG5 Everything after "PL" is the id "uR1PJnGR-Igj4mNcr6_zDkQ3DTVA6wG5". so I use this as my id: PLuR1PJnGR-Igj4mNcr6_zDkQ3DTVA6wG5
 
rburns50
buzztouch Evangelist
Profile
Posts: 168
Reg: May 12, 2014
Bilston - Engla...
9,130
like
08/06/14 11:25 AM (9 years ago)
Thats the Android Studio tour video (Setting up a project and gradle); if the string is just after the video id - that would be "2q7XGuH2Q". The playlist ID however is as CM puts it "PLuR1PJnGR-Igj4mNcr6_zDkQ3DTVA6wG5" If you go to YouTube and paste by of these strings in, one reveals the video only (video id) whilst the other reveals the full playlist which contains 4 X videos. Depending on what you want displayed then use appropriate string.
 
Sophie Bowman
Lost but trying
Profile
Posts: 9
Reg: Sep 13, 2013
Australia
1,640
like
08/06/14 11:28 PM (9 years ago)
I've downloaded the App onto my phone. And the video can play on the mobile youtube App. The I'm pretty sure the Youtube URL i'm using dosn't have a PL in it but it sounds like from the comments above it is because the App is set for iOS, not android. The readme.txt contents for the plugin states: "This plugin uses the HCYoutubeParser to get the iOS compatible video URL from YouTube. https://github.com/hellozimi/HCYoutubeParser " but i don't understand how to use this site to get the right URL:/
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
08/07/14 09:10 AM (9 years ago)
Can ypu share the url?
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
08/07/14 11:25 AM (9 years ago)
if the videos are mobile optimized, you can make your own playlist of the videos on youtube.
 
Sophie Bowman
Lost but trying
Profile
Posts: 9
Reg: Sep 13, 2013
Australia
1,640
like
08/08/14 04:08 PM (9 years ago)
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.