Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Problem with On-The-Fly PlayReady Encryption

  1. #1
    Join Date
    Aug 2012
    Posts
    25

    Default Problem with On-The-Fly PlayReady Encryption

    Hi,
    I' ve read the following article:
    How to secure smooth streaming using PlayReady DRM (Silverlight)
    and did follow the steps in it, but I got stuck playing video.

    Using Wowza Media Server 3, I tried both the key file way and server-api way, but I always got an error message on wowza server saying "PlayReadyEncryptor.encryptChunkCTR: java.lang.NullPointerException", and stuck in a "media error 3192" message when trying to play with Silverlight player.

    I logged some messages at license server(PlayReady) and it showed that the license issuing functions correctly.

    Are there anything I missed?
    Any suggestions?

    Thanks in advance,
    Weichung
    Last edited by weichung; 08-23-2012 at 03:03 AM.

  2. #2
    Join Date
    Aug 2012
    Posts
    25

    Default

    Any one? Please help~

  3. #3
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    Is smooth streaming enabled? You have to add "smoothstreamingpacketizer" to the Application.xml /LiveStreamPacketizers

    Find that line in the access log, then look above it to see what was happening just before.

    Richard

  4. #4
    Join Date
    Aug 2012
    Posts
    25

    Default

    hi Richard,
    I'm streaming vod using "default" StreamType, enabling smoothstreamingpacketizer leads to errors on server reboot.

    Is on-the-fly mechanism only for live streaming? or should I do any further settings in configuration?

    Thanks,

    weichung

  5. #5
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    weichung,

    If you are doing live streaming, make the StreamType "live".

    If you are doing video on demand (vod) streaming, use StreamType "default" and make the LiveStreamPacketizers emtpy.

    Richard

  6. #6
    Join Date
    Aug 2012
    Posts
    25

    Default

    hi Richard,

    Currently I'm streaming vod, so I use StreamType "default" and left LiveStreamPacketizers empty. This is the original setting I use when the error situation occured.

    Thanks for answering,

    weichung

  7. #7
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    I'm not sure what this is. Does this video play in Silverlight smooth player without encryption?

    What version of Wowza are you using? What player? Have you tested using Wowza example players?

    Richard

  8. #8
    Join Date
    Aug 2012
    Posts
    25

    Default

    Yes, the video plays without encryption both in example player and a self-developed testing player.
    When it's protected by on-the-fly encryption, error occurs in both of the players as well.
    I'm using Wowza 3.1.2.

    Everything works fine when I pre-encrypted the video into ismv.

    weichung
    Last edited by weichung; 09-06-2012 at 08:32 PM.

  9. #9
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    Is it a particular file? Have you tried Wowza sample.mp4?

    Detail the steps you have taken so that I can follow and reproduce.

    Richard

  10. #10
    Join Date
    Aug 2012
    Posts
    25

    Default

    sorry for missing details.

    I've tried several different video files, including sample.mp4.
    All videos are placed directly under /content, and corresponding .key file directly under /keys, no sub-directories.
    Key file contains all five elements and five elements only: key-id, license-url, content-id, checksum, and algorithm.
    Content-id, checksum and algorithm are extracted from WRMHeader of a random pre-encrypted ismv.
    Key file is saved from .txt file to .key file in ANSI encoding, other encoding seem to disable the key.
    Then I played the video with url like: http://localhost/vod/sample.mp4/Manifest

    A thought suddenly comes to my mind. Can content-id and checksum of single random ismv file be used in key to apply to all?
    Should I pre-encrypt each video into ismv, then get the content-id and the checksum from its WRMHeader,
    finally use these elements in the key file to do on-the-fly encryption?

    weichung
    Last edited by weichung; 09-10-2012 at 11:19 PM.

Page 1 of 2 12 LastLast

Similar Threads

  1. [Problem] PlayReady error of live edge
    By nob_n0 in forum Wowza DRM
    Replies: 1
    Last Post: 05-15-2014, 06:31 PM
  2. PlayReady and HLS
    By Djoulz in forum AddOn: Wowza DRM
    Replies: 17
    Last Post: 01-24-2013, 09:48 AM

Posting Permissions

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