Discussion Forums  >  Uncategorized

Replies: 4    Views: 580

JayArr
I hate code!
Profile
Posts: 17
Reg: Jan 19, 2011
USA
170
01/28/11 02:06 AM (15 years ago)

Youtube video problem

hi I am new to android, we are trying to develop a youtube video application, in which our web server generates a html page(x.html) with youtube video urls such as http://www.youtube.com/v/VIDEO_ID?f=videos using our uploaded videos from youtube feed api. when we load our generated html page, as custom url, it is loading fine and showing our page good. but when i click on the youtube link (like shown above), it asks for option to select youtube or browser. Now here are my questions. ( i am testing this on HTC Aria with Android OS 2.1-update1) 1. A weired thing we observed is when we select youtube option from the above options, video is being redirected to Android OS's native youtube app and video plays fine, but in the app the page goes to some weired characters page... i don't know why, even when i tried to link with direct rtsp link also, video plays fine in htc player, but we do get an error message saying web page not available with some message as vnd.app=youtube not found. 2. How to force the youtube link (like shown above, not RTSP link) to Android OS's native youtube app? without getting this error message? Thanks, Jay
 
Tom Shortridge
Aspiring developer
Profile
Posts: 78
Reg: Nov 22, 2010
Virginia
1,480
like
01/28/11 09:46 AM (15 years ago)
Question - why do you need to generate an html page with the youtube video urls? What advantages does that have over using Buzztouch, making a submenu called Videos or similar, and loading it with several YouTube video screens?
 
JayArr
I hate code!
Profile
Posts: 17
Reg: Jan 19, 2011
USA
170
like
01/28/11 10:34 AM (15 years ago)
The reason for html generated youtube video url is from youtube api, since our server uses youtube api gdata and outputs a html which contains list of videos as thumbnail with youtube video url (kind a similar to rss FEED, but in JSON) as such when we use the URL of HTML output in the custom url is easy, rather than buzztouch individual youtube videos, which we need to replace every time we update our videos.
 
Tom Shortridge
Aspiring developer
Profile
Posts: 78
Reg: Nov 22, 2010
Virginia
1,480
like
01/29/11 09:21 PM (15 years ago)
You do realize that using buzztouch's control panel, you can update your app for all users without recompiling and submitting to marketplaces, right? That, I think, accomplishes the same thing as your custom html page would, and it would force the native Android YouTube app to be used. Not sure of any way to force open the native YouTube app from custom html.
 
Tom Shortridge
Aspiring developer
Profile
Posts: 78
Reg: Nov 22, 2010
Virginia
1,480
like
02/01/11 09:52 AM (15 years ago)
In case you haven't been having luck: from another thread on here, from David, concerning forcing the use of the native browser: you could look at the Screen_CustomURL.java file where it determines if it should open the native browser or the embedded browser when a link is clicked. Look for useNativeIntent and you'll see where .mp3's (and youtube) are directedt to the native browser. Hope that at least points you in the right direction.
 

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.