[prev in list] [next in list] [prev in thread] [next in thread] 

List:       helix-server-cvs
Subject:    [Server-cvs] engine/core/pub proc_container.h,1.35.8.1,1.35.8.2
From:       packard () helixcommunity ! org
Date:       2012-05-22 10:37:34
[Download RAW message or body]

Update of /cvsroot/server/engine/core/pub
In directory cvs01.internal.helixcommunity.org:/tmp/cvs-serv18489/engine/core/pub

Modified Files:
      Tag: SERVER_14_3_VERIMETRIX_HLS_LR
	proc_container.h 
Log Message:
Synopsis
========
DRM HLS LR implementation, version 3(new feature added)
Branches: SERVER_14_3_VERIMETRIX_HLS_LR 

reviewed by: Xiaocheng Li


Description
===========
Based on feedback from Xiaocheng and Eric, I update the API as follows, if you have \
any question, please let me know.


IV. API for CMS
===================================================
A.     Get all map info
http://localhost:8009/__drmvcas/?method=getall&t=assettype
eg.
get vod mapping
http://localhost:8009/__drmvcas/?method=getall&t=vod
get live mapping
http://localhost:8009/__drmvcas/?method=getall&t=live

server returns
if success,
<?xml version="1.0" encoding="UTF-8"?>
<Items>
<ItemID="22000">/iPhone-src/3.mp4</Item>
<ItemID="22001">/iPhone-src/2.mp4</Item>
</Items>
Else
Return http 400 error

B.     Get one map info for a certain resource-id
http://localhost:8009/__drmvcas/?method=get&r=resource-id&t=assettype
or 
http://localhost:8009/__drmvcas/?method=get&n=stream-name&t=assettype
eg. 
get vod mapping
http://localhost:8009/__drmvcas/?method=get&r=20000&t=vod
get live mapping
http://localhost:8009/__drmvcas/?method=get&r=20000&t=live

server returns
if success,
<?xml version="1.0" encoding="UTF-8"?>
<Items>
<ItemID="22000">/iPhone-src/3.mp4</Item>
</Items>
Else
Return http 400 error

 
C.     Delete one map info for a certain resource-id, we don't support delete live \
mapping.  The reason is that live mapping will be deleted automaticly when live feed \
disconnects, if we delete it menually, will make the system confused. \
http://localhost:8009/__ drmvcas /?method=del&r=resource-id&t=assettype eg. 
delete one vod mapping, t=live should not be used
http://localhost:8009/__ drmvcas /?method=del&r=20000&t=vod

if success,
return OK
else
return FAIL


Files Affected
==============
server/engine/core/proc_container.cpp
server/engine/core/core_proc.cpp
server/engine/core/server_context.cpp
server/engine/core/pub/proc_container.h

Testing Performed
=================
Test with Helix Server and iPhone

Index: proc_container.h
===================================================================
RCS file: /cvsroot/server/engine/core/pub/proc_container.h,v
retrieving revision 1.35.8.1
retrieving revision 1.35.8.2
diff -u -d -r1.35.8.1 -r1.35.8.2
--- proc_container.h	22 May 2012 05:43:53 -0000	1.35.8.1
+++ proc_container.h	22 May 2012 10:37:32 -0000	1.35.8.2
@@ -209,6 +209,7 @@
     CHXThreadSafeMap*           sspl_session_map;
     CHXThreadSafeMap*           iPhone_hpl_session_map;
     void*                       drm_vod_path_map;
+    void*                       drm_live_path_map;
     Dict*                       mime_type_dict;
     BroadcastManager*           broadcast_manager;
     LoadBalancedListenerManager*load_listen_mgr;


_______________________________________________
Server-cvs mailing list
Server-cvs@helixcommunity.org
http://lists.helixcommunity.org/mailman/listinfo/server-cvs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic