HI, I want to play a youtube video when i click on an image in a seperate window using childbrowser. When i pass the url as http://youtu.be/videoID , the page doesn't show the youtube video- one click is needed for the video to be downloaded and shown.
Do i need to use any particular URL for it to be loaded when the childbrowser is launched?
Hey, weird post for you to comment on considering this one has nothing to do with the VideoPlayer. Regardless, I believe the problem is that my VideoPlayer is looking for url's in the format of:
http://www.youtube.com/watch?v=BnLMxuNFc3k
It looks for "youtube.com" to determine if it should launch the YouTube app then it looks for the "v" parameter to find out the video id.
I think you'll need to go in the src code of VideoPlayer.java and change the constant YOU_TUBE to be "youtube.be". Give that a try and let me know if it fixes the issue.
HI,
ReplyDeleteI want to play a youtube video when i click on an image in a seperate window using childbrowser. When i pass the url as http://youtu.be/videoID , the page doesn't show the youtube video- one click is needed for the video to be downloaded and shown.
Do i need to use any particular URL for it to be loaded when the childbrowser is launched?
Thanks for your help.
@Sireesha
ReplyDeleteHey, weird post for you to comment on considering this one has nothing to do with the VideoPlayer. Regardless, I believe the problem is that my VideoPlayer is looking for url's in the format of:
http://www.youtube.com/watch?v=BnLMxuNFc3k
It looks for "youtube.com" to determine if it should launch the YouTube app then it looks for the "v" parameter to find out the video id.
I think you'll need to go in the src code of VideoPlayer.java and change the constant YOU_TUBE to be "youtube.be". Give that a try and let me know if it fixes the issue.