How to use core mediaplayer for YouTube videos?

Hi all

I try to use the mediaplayer core to show a YouTube video.

This is the code I wrote:

MyApp::startYoutube (QString uri) {}

InvokeRequest cardRequest;

cardRequest.setTarget ("sys.mediaplayer.previewer");

cardRequest.setAction ("bb.action.OPEN");

cardRequest.setMimeType("video/x-youtube"); also tried with video/mp4 and video/x-flv

cardRequest.setUri (uri);

BB::System:InvokeManager invokeMan;

invokeMan.invoke (cardRequest);

}

but in passing the url of YouTube (http://www.youtube.com/v/VIDEO_ID) advice me called card format is not supported.

I know it's possible beacause of FastTube app, but I can't find the solution.

Where is the error?

Thanks in advance.

Matt

Hi @beat84,.

The link you are trying to read is basically a URL for the web browser, correct? It's YouTube would need HTML5 or Flash enabled to show you that the content (it shows the custom controls in the correct YouTube Player?). To play things from YouTube, with this type of format of the URL, you have to play within a WebView component if you wanted to use it in a native application. The webkit runtime has its own (same as seen through the browser application) player who will go to full screen when the user plays the content. Alternatively, you can take a glance at native applications as Nobex Radio or SoundHound who plays video YouTube by WebView.

To play using the media base Previewer map app (that you are trying to do below), you must know the final destination of the server URL (for example: http://domainName.com/file.mp4). Basically, the server will send the encoded media, according to a protocol recognized by the multimedia platform BlackBerry 10.

I hope this helps.

See you soon,.
Rashid

Applications development consultant | Relationships with developers

BlackBerry @surashid

Tags: BlackBerry Developers

Similar Questions

  • Is there a songsmith creative commons license link so that I can use created songs for YouTube videos monetized Songsmith?

    Is there a songsmith creative commons license link so that I can use created songs for YouTube videos monetized Songsmith?

    original title: songsmith creative commons license

    Hello

    The question you have posted is related to Songsmith and would be better suited to the Songsmith community. Please visit the below mentioned link to find a community that will offer in support of your request:

    http://social.Microsoft.com/forums/en-us/songsmith

  • What are the best settings for Youtube videos using Camileo X 200

    What is the best video settings for the x 200 for youtube videos. 720 p-30 / 60-720 p / 1080 p-30.

    Thank you

    Hello

    In my opinion the 720 p-30 is good enough for Youtube.

  • How to slow my audio for my video?

    How to slow my audio for my video?

    I need to adjust my audio because it's going too fast for my video.

    The audio is too fast 1 sec.

    Specify the name of the program that you use, so a moderator can move this message to the correct forum

    This Cloud forum is not for help with problems of program... program would be Photoshop Lighroom or Muse or?

    Exactly what is on the INSIDE of the video you are editing?

    A report with details of codec your file, use the following programs... A screen capture works well for people to SHOW what you do - press for Windows Internet explore the PRINT SCREEN key on your keyboard and then do Ctrl + V to paste the screen to the Clipboard in a forum message

    Free programs to get information on the post http://mediaarea.net/en/MediaInfo/Download PC/Mac files in tree

    .

    Your video using a VARIABLE rate? See https://forums.adobe.com/thread/1110005

    If so, use https://handbrake.fr/ opensource transcoder/converter to convert to constant cadence

  • How to use mobile data for large app download data

    How to use mobile data for large app download data

    How can I set big data

  • How to upgrade the driver for my video card?

    How to upgrade the driver for my video card?

    Most often when a device does not work, it's because the driver has been corrupted.

    Try reinstalling your.

    http://Windows.Microsoft.com/en-us/Windows7/update-a-driver-for-hardware-that-isn ' t-work correctly? SignedIn = 1

    http://captaindbg.com/how-to-update-drivers-on-Windows-7/

  • How to use transfer windows for xp to xp. When I plug usb computers are delivered to the top with the same screen and when I try to use the transfer to the new computer, it just said information gathering and sits for hours

    How to use transfer windows for xp to xp.  When I plug usb computers are delivered to the top with the same screen and when I try to use the transfer to the new computer, it just said information gathering and sits for hours

    Hello, welcome.

    The process is automatic and the maximum transfer rate should be about 20 GB/HR. If the process crashes during that long of a time, it's probably because of something internal rather something you're doing wrong.
    For reference purposes, I included this link. It goes into the details of the migration from XP to Vista (and the basic steps you follow). The instructions are for migrating to Vista via the network, but you can easily follow the steps and choose a different option for your specific installation.
    For both machines, I recommend you to prepare for the transfer using the following procedure:
    1. click on START > run
    2 type "msconfig" (without the quotes) and press enter
    3. go to the "Startup" tab and uncheck all the entries displayed
    4. click on 'Apply' at the bottom right
    DO NOT RESTART YOUR COMPUTER AGAIN
    5. click on START > run
    6. Type "cmd" (without the quotes). Right-click on the result at the top of the menu START and select 'run as administrator '.
    7. type chkdsk /r and press enter
    8 allow the system to attempt disassembly of the volume
    9. allow the system to plan restarting
    10. restart your computer
    11 let checkdisk analyze the file system on your hard drive
    12. Once completed, perform the same steps on the other machine
    13. Once completed, repeat the transfer

    Let us know what happens
    Thank you!

    Ryan Thieman
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How to install a driver for my video card updated? Online.

    How to install an updated for my video card driver online?

    How to install an updated for my video card driver online?

    1. click on the Start button.

    2. in the start search box type: Device Manager and press the Enter key.

    3. expand to see what graphics cards that the graphics card is there.

    4. visit the website of the manufacturer of the graphics card.

    5. download and save the latest compatible driver (eg.on your computer desktop)

    6. once the download is complete, double-click the file to run it and follow the instructions on the screen.

  • Any how to use the Cloud for business training

    As in the topic I'm looking for inspiration, examples, how to use the Cloud for his work.

    My organization is a training, coaching and HR solutions company. (If you are interesting in, welcome to [deleted by Moderator])

    I believe that such tools as a Cloud technology could training more effective and more attractive to the user in its form.

    Will be grateful for any suggestion

    Wik

    Hello

    Please see the pricing and membership creative cloud plans | Adobe Creative Cloud

    You can also attach sales to understand plans and benefits.

    Contact us | Adobe

    Hope that helps!

    Kind regards

    Sheena

  • just bought SCAN SNAP supplied with disc of Acrobat, but only for PC, I use a MAC, the serial number of the disk, how to use and get for MAC

    just bought SCAN SNAP supplied with disc of Acrobat, but only for PC, I use a MAC, the serial number of the disk, how to use and get for MAC

    Standard Acrobat's window only; Acrobat pro for mac

  • How to use as operator for several values

    Hi all

    I want to obtain the column values for the column - filed_name which ends by ('X 1', 'X 2' 'X 3' 'X 4' 'X 5' 'X 0' 'XA' 'XB' "XM" "XP" 'X' "CM" "MT") of the variable_info table


    I tried to use as shown below

    SELECT * FROM VARIABLE_INFO WHERE FieldName like (' %x 1 "," %X 0 ");

    but getting error
    ORA-00907: lack of right parenthesis

    can someone tell me how to use as operator for multiple values?

    Thank you/kumar

    You need not a subquery, just make sure that you use parentheses to group your GOLD requirements

    SELECT RELATION ,
    FIELD_NAME ,
    ATTRIBUTE ,
    FIELD_DESCRIPTION,
    SOURCE
    FROM VARIABLE_INFO
    WHERE RELATION NOT IN ( 'CHAI',  'ITAB', 'ITB2', 'ITB3', 'MINI', 'NOTE', 'MINC', 'FINI', 'FTIM', 'FWTG', 'FMLY', 'FMIS', 'FSUM', 'MEMB' ,'FINC', 'FASO')
    AND (SUBSTR(FIELD_NAME,-2) in ('X1', 'X2' ,'X3', 'X4', 'X5', 'X0', 'XA', 'XB', 'XM' ,'XP' ,'CM','MT')
      OR substr(FIELD_NAME,-1) in ('X')
      OR substr(FIELD_NAME,1) in ('J')
      )
    AND (ATTRIBUTE LIKE 'NUM%' OR ATTRIBUTE = '-') ;
    

    The error you are getting sounds like a problem with the definition of VARIABLE_INFO. It seems the synonym or something that it points to rear edge

    For example:

    CREATE SYNONYM X FOR DUAL;
    CREATE SYNONYM Y FOR X;
    CREATE OR REPLACE SYNONYM X FOR Y;
    SELECT * FROM Y;
    
    SQL Error: ORA-01775: looping chain of synonyms
    

    Kind regards
    Bob

  • How can I increase the volume for youtube videos?

    Volume problems

    How can I increase the volume of videos youtube - control panel shows me that my volueme is still 100% can hardly hear youtube videos.

    Hover your mouse over the video, and then point the mouse pointer on the volume icon on the floating toolbar that appears, make slide the volume knob to the right to increase the volume.

    Another thing to try if you still hear no sound, click on the volume icon in the Notification area of the Windows taskbar, click mix and watch if the mixer volume for Youtube is turned upward.

  • How to view the description of the video using the Toolbox 023 'YouTube video gallery' plugin?

    the Toolbox 023 'YouTube video gallery' plugin provides access to individual videos, but not their comments. is this an oversight?

    With the native youtube widget, this option is not included, but you can go with embed code comments on video:

    https://developers.Google.com/YouTube/2.0/developers_guide_protocol_comments

    Thank you

    Sanjit

  • Extensions of chrome for youtube video downloading

    I started using the chrome t browser, and now I need extensions for download YOUTUBE videos try freely.i Easy youtube video downloader for firefox, but its not available in chrome.suggest something...!

    Hi there,

    You can download YouTube videos using Internet Explorer?

    As you use Google Chrome to draft.exe YouTube videos, you can get in touch with Google is supported for assistance on the issue.

    You can post your request in the support forum of Google Chrome for better assistance on the issue:

    Support for Google Chrome

    http://support.Google.com/chrome/?hl=en

     

    If you are unable to download videos YouTube using Internet Explorer, you can follow the steps in the article mentioned below and check:

     

    The video problems when you use Internet Explorer

    http://support.Microsoft.com/kb/2532294

    Hope this information helps. For any other corresponding Windows help, do not hesitate to contact us and we will be happy to help you.

  • While Facebook I can't access an assignment for youtube videos. any suggestions

    I can't access youtube videos while on facebook, get a message that says (an error occurred, please try again later) any suggestions?

    Hello

    1. are you able to play the videos on other sites? What happens if you play the YouTube video?
    2. what Internet browser do you use?

    There are many reasons why this error message comes. If the video is removed from the binding of the host, it could give you this error. Also if the video is uploaded with the privacy settings same error may occur.
    See the steps listed in the section "Display of videos" in the link below:
    http://www.Facebook.com/help/?page=833

    I hope this helps.

Maybe you are looking for