TechTalkz.com Logo

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Tech Support Archives > Microsoft > Windows Media

Reply
 
Thread Tools Display Modes
Old 21-09-2007, 05:52 PM   #1
troycity via WindowsKB.com
Guest
 
Posts: n/a
How to stream DRM protected file to Media Server ?

Dear friends,

How to stream a DRM protected file to media server and broadcast from media
server ?

I develop a VB application with WM Encoder SDK. It's OK for stream a
unprotected media file to media server. But when I stream a protected file to
media server , I got a error message as following .

"You need a license to perform the requested operation on the media file"

How can I to solve this problem ?

the follwoing is the test application , be.wmv is the DRM protected medila
file
------------------------------------------------------------------------------
---------------------------------
' Declare variables.
Dim Encoder As WMEncoder
Dim SrcGrpColl As IWMEncSourceGroupCollection
Dim SrcGrp As IWMEncSourceGroup2
Dim SrcAud As IWMEncAudioSource
Dim SrcVid As IWMEncVideoSource
Dim ProColl As IWMEncProfileCollection
Dim Pro As IWMEncProfile
Dim PushDist As IWMEncPushDistribution
Dim strServerName As String
Dim strPubPoint As String
Dim strPubTemplate As String
Dim MyNSCFile As String
Dim MyNSCURL As String
Dim MyASXFile As String

' Create a WMEncoder object.
Set Encoder = New WMEncoder

' Retrieve the source group collection and add sources.
' Use the default devices for the audio and video sources.
Set SrcGrpColl = Encoder.SourceGroupCollection
Set SrcGrp = SrcGrpColl.Add("SG_1")
Set SrcAud = SrcGrp.AddSource(WMENC_AUDIO)
Set SrcVid = SrcGrp.AddSource(WMENC_VIDEO)
SrcAud.SetInput "D:\avi\be.wmv"
SrcVid.SetInput "D:\avi\be.wmv"

' Retrieve the profile collection. This example uses the 3rd profile.
Set ProColl = Encoder.ProfileCollection
Set Pro = ProColl.Item(2)
SrcGrp.Profile = Pro

' Set up the push broadcast.
Set PushDist = Encoder.Broadcast

' Specify the push distribution variables, including the Windows Media
' server name, publishing point, and announcement files.
' Provide real values for the following placeholders.

'strServerName = "MyWMServer:70"
'strPubPoint = "MyPubPoint"
'strPubTemplate = "AnotherPubPoint"
'MyNSCFile = "\\servername\share\MyPubPoint.nsc"
'MyNSCURL = "\\servername\share\MyPubPoint.nsc"
'MyASXFile = "\\MyComputer\MyPubPoint.asx"

strServerName = "202.153.207.150"
strPubPoint = "willy"
'strPubTemplate = "AnotherPubPoint"
MyNSCFile = "\\202.153.207.150\share\MyPubPoint.nsc"
MyNSCURL = "\\202.153.207.150\share\MyPubPoint.nsc"
MyASXFile = "\\dlab\MyPubPoint.asx"


' Remove the publishing point when the broadcast is over.
PushDist.AutoRemovePublishingPoint = True

' Set the push distribution variables.
PushDist.ServerName = strServerName
PushDist.PublishingPoint = strPubPoint
'PushDist.Template = strPubTemplate
Encoder.PrepareToEncode True

' Generate the announcement file.
'PushDist.GenerateMulticastInfoFile (MyNSCFile)
'PushDist.GenerateAnnouncementFile MyNSCURL, MyASXFile

' Start encoding.
Encoder.Start

MsgBox "Click OK to stop broadcasting."
------------------------------------------------------------------------------
-------------------

Please help.

Best Regards,

Bear man
2007.09.06

--
Message posted via http://www.windowskb.com

  Reply With Quote
Reply
Tags: , , , , ,


Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Vista Business Edition - Can you still stream media? Ian Windows Vista All 1 14-09-2007 03:15 PM
Unable to stream video using IE to open Windows Media Player sealion Internet Explorer 0 29-08-2007 01:48 AM
Unable to stream video using IE to open Windows Media Player sealion Internet Explorer 0 29-08-2007 01:47 AM
Unable to stream video using IE to open Windows Media Player sealion Internet Explorer 0 29-08-2007 01:34 AM
Unable to stream video using IE to open Windows Media Player sealion Internet Explorer 0 29-08-2007 01:32 AM

Google
 


All times are GMT +5.5. The time now is 11:20 PM.


vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright © 2005-2008, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional