×

Discussion Board

Results 1 to 14 of 14
  1. #1
    Registered User
    Join Date
    Mar 2010
    Posts
    9

    opening mp3 file with drm protection

    is it possible with j2me to open with MMAPI a DRM protected mp3 file

  2. #2
    Super Contributor
    Join Date
    Mar 2005
    Location
    Paris
    Posts
    814

    Re: opening mp3 file with drm protection

    afaik, there is no such thing as DRM-protected MP3. can you elaborate on the issues your are facing?

  3. #3
    Registered User
    Join Date
    Mar 2010
    Posts
    9

    Re: opening mp3 file with drm protection

    i'm downloading a drm protected file using OMA 1 (the download link ends with .dm extension and after downloading the extension changes to .mp3)

    I try to open it with MMAPI on s60 3rd edition device using:

    Player player = javax.microedition.media.Manager.createPlayer(sFileName);

    but I get a java.lang.SecurityException - access denied

  4. #4
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Thumbs up Re: opening mp3 file with drm protection

    Quote Originally Posted by giligen View Post
    is it possible with j2me to open with MMAPI a DRM protected mp3 file
    With which device/family of devices are you working with?
    Please read what API says:
    Digital Right Management (DRM) protected files are supported at the moment only in S60 3rd Edition and
    later devices. These files can be played by using the MMAPI's Manager.createPlayer(String
    locator) method. As an example, a player using DRM-protected audio content could be created in the
    following way:
    Player player = Manager.createPlayer("file:///C:/Data/Sounds/Digital/
    Song.dcf");
    Please Note That :
    The Manager's createPlayer(InputStream stream, String type) method does not
    work with DRM-protected content. There is no need to indicate in any way that the file to be played back
    is DRM-protected. In addition, it is not possible to play the DRM-protected files packaged into the JAR
    archive. In addition, the only accepted source for DRM files is file:// locator. DRM files cannot be played
    e.g. from http:// .
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  5. #5
    Super Contributor
    Join Date
    Mar 2005
    Location
    Paris
    Posts
    814

    Re: opening mp3 file with drm protection

    also, from http://library.forum.nokia.com/index...CC45E0768.html :
    "
    From S60 3rd Edition through S60 5th Edition, the FileConnection API implementation supports accessing OMA DRM 1.0 protected files. This feature is not supported from Java Runtime 2.1 for Symbian onwards.

    When accessing DRM protected files, the MIDlet has to specify whether the file is opened in decrypted or in encrypted mode. The DRM access mode is specified as a parameter at the end of the file URL. If the DRM access mode is not specified when opening a DRM protected file, java.lang.SecurityException will be thrown. The syntax for the DRM access mode parameter is as follows:

    drm_access_mode :== "?drm=" ( "enc" | dec )
    dec :== "dec+" purpose [ "+preview" ]
    purpose :== "display" | "play" | "print" | "execute"

    For examples on URLs containing access mode parameters, see sections Encrypted mode and Decrypted mode below.

    DRM protected files can only be opened as read-only. In particular, this means that MIDlets that want to open DRM protected files must use two or three-parameter versions of Connector.open(). The second parameter of the method can only be Connector.READ. Any other value of the second parameter causes java.lang.SecurityException to be thrown. If a URL with DRM parameters is passed to the one-parameter version of Connector.open(), java.lang.SecurityException is thrown. This is because the default access mode for the one-parameter version of Connector.open() is Connector.READ_WRITE.
    "

  6. #6
    Registered User
    Join Date
    Mar 2010
    Posts
    9

    Re: opening mp3 file with drm protection

    i'm using S60 3rd edition (6210 navigator) so it Should work

    On S60 3rd Edition devices there is some DRM support described as follows:
    - It is possible to play a DRM-protected file using the Mobile Media API with the following syntax:
    Player p = Manager.createPlayer("file:///E:/Sounds/Digital/jack_aac_aac.dcf"); //without the drm=enc parameter
    I use the following line:

    Player player = javax.microedition.media.Manager.createPlayer(locator);

    but still I get access denied ...

  7. #7
    Registered User
    Join Date
    Mar 2010
    Posts
    9

    Re: opening mp3 file with drm protection

    (and the locator is: "file:///E:/download/filename.mp3")

  8. #8
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Re: opening mp3 file with drm protection

    Quote Originally Posted by giligen View Post
    (and the locator is: "file:///E:/download/filename.mp3")
    Did you gave any encryption mode?
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  9. #9
    Registered User
    Join Date
    Mar 2010
    Posts
    9

    Re: opening mp3 file with drm protection

    No, since the article specifies:

    Player p = Manager.createPlayer("file:///E:/Sounds/Digital/jack_aac_aac.dcf"); //without the drm=enc parameter

  10. #10
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Re: opening mp3 file with drm protection

    Quote Originally Posted by giligen View Post
    No, since the article specifies:

    Okay, well are you able to access any other file from the file system, and are you sure that the connection to the file system is working.
    Why don't you try to access any other file before in order to make sure that the connection is working.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  11. #11
    Registered User
    Join Date
    Mar 2010
    Posts
    9

    Re: opening mp3 file with drm protection

    I've tried a different mp3 file on the same directory and its working fine, the problem is only with the drm protected file...

    (I'm using an unsigned application, maybe that is the problem?)

  12. #12
    Super Contributor
    Join Date
    Mar 2005
    Location
    Paris
    Posts
    814

    Re: opening mp3 file with drm protection

    can you check
    A/ with explicit decryption mode (something like ?drm=dec+play
    B/ if there is a section concerning DRM in the application permissions, and what are the options there

  13. #13
    Registered User
    Join Date
    Mar 2010
    Posts
    9

    Re: opening mp3 file with drm protection

    Quote Originally Posted by njzk2 View Post
    can you check
    A/ with explicit decryption mode (something like ?drm=dec+play
    B/ if there is a section concerning DRM in the application permissions, and what are the options there
    A/ -< solved my problem (in spite of what the official Nokia document says...)

  14. #14
    Registered User
    Join Date
    Mar 2010
    Posts
    9

    Re: opening mp3 file with drm protection

    The solution:

    open DRM protected files via MMAPI using the following format:

    Player p = Manager.createPlayer(locator + "?enc=drm); //with the drm=enc parameter!

    and you can play DRM protected files with j2me application (with S60 3rd Edition or newer devices only!)

Similar Threads

  1. J2me Midlet jar jad file DRM protection:
    By sumanbera in forum Mobile Java Tools & SDKs
    Replies: 4
    Last Post: 2007-11-02, 22:27
  2. opening file in Drm player leaves with -28
    By suterma in forum Symbian Media (Closed)
    Replies: 11
    Last Post: 2006-08-07, 16:00
  3. opening file in Drm player leaves with -28
    By suterma in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2006-07-24, 19:56
  4. Content Protection by DRM to block file transfer via infared or others
    By Mostafiz in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2006-02-08, 06:15
  5. DRM protection
    By kssevimli in forum Mobile Java General
    Replies: 0
    Last Post: 2005-03-20, 15:37

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×