I need to play a youtube video from my bb application. Does anyone know how to do that? Can I have a youtube video player directly inside my app or can I at least have a link to open youtube video in the browser?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
What you want to do is get the
rtspstreaming URL for the video. When I browse to YouTube on a BlackBerry with the native browser, it serves a page with links to this format. If you know exactly which video to play at build-time, great. If it’s going to be picked by your users, you’ll have to figure that out.Then, with that URL, you can create a Player like this:
The Field f can be added to your screen. And you can start the video with
References:
http://docs.blackberry.com/en/developers/deliverables/11942/Create_BB_app_that_plays_streaming_media_739691_11.jsp
http://docs.blackberry.com/en/developers/deliverables/11942/Create_BB_app_that_plays_a_video_in_a_UI_field_739692_11.jsp