Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 22    Views: 99

satit
I hate code!
Profile
Posts: 89
Reg: Feb 16, 2012
bangkok
6,640
04/08/13 12:16 AM (12 years ago)

SP Android YouTube Streamer

Hi, I used this plugin to play my video on youtube. It's work great!!!. but the video images , i mean video image/Poster not show on my device. i uploaded images in to the server and put that image to BT_DOCS in eclipse project. It's still not show now. Please advice, Thank you in advance. Satit P.
 
Suvinay pawa
buzztouch Evangelist
Profile
Posts: 599
Reg: Aug 01, 2012
location unknow...
9,890
like
04/08/13 01:51 AM (12 years ago)
Hi,Thanks for using my plugin. Oh! And about the images you did it a little wrong you don't need to do both the things. 1)Just take your images and put them in res>drawable folder 2)In your control panel and enter the name of the image. Advice : Try keeping the image in png and the name only in letters and not in capitals. Hope this helps.Do rate my plugin if you Like it - Suvinay For special services like custom plugins, custom work, app widgets etc.Contact me at http://www.makemeanapp.in/services
 
satit
I hate code!
Profile
Posts: 89
Reg: Feb 16, 2012
bangkok
6,640
like
04/08/13 02:12 AM (12 years ago)
Hi, Thank you for reply quickly, Yes it's very helpful. After following your instruction. The video image/Poster had already show in my apps. Everything of Your Plugin work fine. i love it. Is it possible! 1. how can i change the caption "Play Video" on the button to my language. 2. if i want to playing the video after select the menu. don't want to wait for user press <Play Video> button. BTW: i notice that this plugin can not play video from youtube which mark embedded now allow. Thank very much again. Satit P.
 
Suvinay pawa
buzztouch Evangelist
Profile
Posts: 599
Reg: Aug 01, 2012
location unknow...
9,890
like
04/08/13 02:21 AM (12 years ago)
Hi, for 2 ,Its quite not possible as i have to code all of it again.:) For the "play video" , Instead of that you can use an image like a play button. Just follow this tutorial: https://www.buzztouch.com/forum/thread.php?tid=05CC7FC4CC14A7B10F0FED8 And can you expain a bit more which type of videos it doesnt play? I know it can't play live videos.
 
satit
I hate code!
Profile
Posts: 89
Reg: Feb 16, 2012
bangkok
6,640
like
04/08/13 02:56 AM (12 years ago)
Yes, You tutorial very useful. Now i'd change my background with your play button. it's look professional. if you have a new tutorial pls let me know. if some guy post youtube video with click embeded not allow. this plugin can not play. the problem not come for your plugin but from that guy. Thank you very much. Satit P.
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
04/08/13 10:07 AM (12 years ago)
Hi @satit, if you are comfortable with digging into the Youtube plugin code you can easily make the video play after selecting from the menu. bypassing the <Play Video> button. Let me know if you'd like help with it. ian
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
04/08/13 10:21 AM (12 years ago)
This should bypass the <Play Video> button. 3 steps. 1. Open the Sp_android_youtube.java file in Eclipse. 2. Scroll down to approximately line 132 where it says: //flag as created.. didCreate = true; 3. just below this replace lines 134 to 156 with the following code: /* //add button to the screen to launch OpenYouTubePlayerActivity.... Button myButton = (Button) findViewById(R.id.play); myButton.setOnClickListener(new OnClickListener(){ public void onClick(View v){ */ //when button is clicked will parse url and launch video Intent nextIntent = new Intent(null, Uri.parse("ytv://"+ videoURL), Sp_youtube_android.this, OpenYouTubePlayerActivity.class); startActivity(nextIntent); finish(); } ; // end of insert button to launch OpenYouTubePlayer, continue BT flow //onCreate
 
satit
I hate code!
Profile
Posts: 89
Reg: Feb 16, 2012
bangkok
6,640
like
04/08/13 09:48 PM (12 years ago)
@Ian: Wow!!! Yes, that i want. now after i selected a video from menu then playing at once. may i paste the code for someone in the future need. For those of people who using SP Youtube Video Plugin and want to select menu then playing at once. it's can be done by editing a file Sp_android_youtube.java From the line no. 134-151 //add button to the screen to launch OpenYouTubePlayerActivity.... Button myButton = (Button) findViewById(R.id.play); myButton.setOnClickListener(new OnClickListener(){ public void onClick(View v){ //when button is clicked will parse url and launch video Intent nextIntent = new Intent(null, Uri.parse("ytv://"+ videoURL), Sp_youtube_android.this, OpenYouTubePlayerActivity.class); startActivity(nextIntent); } }); // end of insert button to launch OpenYouTubePlayer, continue BT flow Change TO: /* //add button to the screen to launch OpenYouTubePlayerActivity.... Button myButton = (Button) findViewById(R.id.play); myButton.setOnClickListener(new OnClickListener(){ public void onClick(View v){ */ //when button is clicked will parse url and launch video Intent nextIntent = new Intent(null, Uri.parse("ytv://"+ videoURL), Sp_youtube_android.this, OpenYouTubePlayerActivity.class); startActivity(nextIntent); finish(); ; // end of insert button to launch OpenYouTubePlayer, continue BT flow Thank you @IAN again Satit P.
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
04/08/13 10:00 PM (12 years ago)
Glad it worked out. It's a great plugin!
 
satit
I hate code!
Profile
Posts: 89
Reg: Feb 16, 2012
bangkok
6,640
like
04/08/13 10:04 PM (12 years ago)
yes i thing so how can i learn how to hack code like you? Or have you some resources to learn ?
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
04/08/13 10:15 PM (12 years ago)
Ha! Lots of trial and error! I am definitely more of a hacker than coder but just google android tutorials. Get comfy with the Android life cycle. That will help u understand what is happening in the code. Cheers! Ian
 
satit
I hate code!
Profile
Posts: 89
Reg: Feb 16, 2012
bangkok
6,640
like
04/09/13 10:16 PM (12 years ago)
@IAN: i want to bypassing the Play Video button in AT53 plguin too. I read through of code in "At53_video_player.java". but can not see where to edit. May be you will see easier than me. So. Please advice. Thank you in advance. Satit P.
 
ali
Aspiring developer
Profile
Posts: 10
Reg: Jan 07, 2013
sydney
100
like
07/04/13 11:15 PM (12 years ago)
Hi i am trying to use this plugins for couple of weeks but the video is not playing after i hit play button, it says the application has stopped unexpectedly, try again
 
Suvinay pawa
buzztouch Evangelist
Profile
Posts: 599
Reg: Aug 01, 2012
location unknow...
9,890
like
07/04/13 11:30 PM (12 years ago)
Did you add the jar file to the build path properly and especially the permission ?
 
ali
Aspiring developer
Profile
Posts: 10
Reg: Jan 07, 2013
sydney
100
like
07/04/13 11:32 PM (12 years ago)
yes i did i did exactly as it says in the instructions. and thank u for ur quick reply. do u have any tutorial for the instructions may be i am missing something thnx in advance
 
Suvinay pawa
buzztouch Evangelist
Profile
Posts: 599
Reg: Aug 01, 2012
location unknow...
9,890
like
07/04/13 11:33 PM (12 years ago)
I am actually not free right now but i will do it for you with teamviewer maybe after few hours. :)
 
ali
Aspiring developer
Profile
Posts: 10
Reg: Jan 07, 2013
sydney
100
like
07/04/13 11:34 PM (12 years ago)
yes i did i did exactly as it says in the instructions. and thank u for ur quick reply. do u have any tutorial for the instructions may be i am missing something thnx in advance
 
ali
Aspiring developer
Profile
Posts: 10
Reg: Jan 07, 2013
sydney
100
like
07/04/13 11:35 PM (12 years ago)
no prob i will be waiting thank you once again. [email protected] is my email thnx
 
ali
Aspiring developer
Profile
Posts: 10
Reg: Jan 07, 2013
sydney
100
like
07/16/13 01:40 PM (12 years ago)
Hi Suvinay pawa I am still waiting for your help to use this plugin????
 
Suvinay pawa
buzztouch Evangelist
Profile
Posts: 599
Reg: Aug 01, 2012
location unknow...
9,890
like
07/17/13 12:07 PM (12 years ago)
Oh sorry,I forgot...
 
ali
Aspiring developer
Profile
Posts: 10
Reg: Jan 07, 2013
sydney
100
like
07/19/13 11:07 AM (12 years ago)
hay Suvinay pawa, can i have the instruction file plz for this plugin
 
ali
Aspiring developer
Profile
Posts: 10
Reg: Jan 07, 2013
sydney
100
like
07/25/13 01:36 PM (12 years ago)
hay Suvinay pawa, can i have the instruction file plz for this plugin
 
ali
Aspiring developer
Profile
Posts: 10
Reg: Jan 07, 2013
sydney
100
like
07/25/13 01:37 PM (12 years ago)
hi Suvinay pawa, still need help
 

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.