2. What is "Generate index file for protected file"?
If you choose the
"Generate index file for protected file". when you protect your media files, as shown in the picture above, you will get an index file in
".txt".
It is used for playing the protected file generated in previous step in Streaming. You just need to upload the index file to the same folder of the protected media file. What's the left is just to use Haihaisoft ActiveX Control to invoke the index file.
Sample Code:
<object id="MyActiveX1" width="400" height="300" classid="CLSID:1A01FF01-EA62-4702-B837-1E07158145FA" VIEWASTEXT>
<param name="_Version" value="65536">
<param name="_ExtentX" value="9149">
<param name="_ExtentY" value="1582">
<param name="_StockProps" value="0">
<param name="Src" value="http://www.drm-x.com/download/DRM-X_Sample_P.wmv">
<param name="UIStyle" value="15">
<param name="Volume" value="80">
<param name="updateurl" value="http://download1.haihaisoft.com/HaihaisoftUniversalPlayer_ActiveX.exe">
<param name="bufferTime" value="10">
<a href="http://download1.haihaisoft.com/HaihaisoftUniversalPlayer_ActiveX.exe" style="text-decoration: none;"><img alt="Click here to download Haihaisoft online Player" src="http://www.drm-x.com/images/Installonlinehup_en.png" style="border-style: none" /></a></object>
Copy the code above and paste it on the page you want to play the media and then
change the URL in highlight into the URL of your own.
Note: If you input the URL of the index file of the protected media, then the media
will be played in streaming.
If you input the URL of the protected media, you can still play it online. But it is not
played in streaming but in progressive download playback.
This new streaming technology is called
Haihaisoft Smart Streaming. The revolutionary streaming is developed by
Haihaisoft Limited. With the Haihaisoft Smart Streaming, you will own a lot of benefits, such as:
No Streaming Server
You can publish the WMV files encoded in the ways of "Generate index file for protected file" or "Generate index file for source file (not protected)" directly through http, https, just like publish images. That means you don't need to use Streaming Server for publishing your media contents any more. It will help you a lot of saving time and money.
No Waiting – Playing at once
The users can play the video at once and don't need to wait until the whole video has been downloaded. The users can also skip to anywhere they want to watch of the video directly.
Less Streaming Cost
As usual, the streaming cost is calculated by how many times a video is played. So it will cost a lot when a user plays the same video for many times.
But now, through Haihaisoft Smart Streaming, it only costs one streaming fee however many times the user plays the video. So it will help you save a lot of streaming fee.
Easy to Play
You just need use Haihaisoft ActiveX Control (its size is only about 2.3MB ) to play the Streaming file online directly. Don't need to download any software.
After you finish encrypting the videos, you will get two new HSS files in the end of the name, shown as below:
Now, this method only supports protecting WMV, FLV files. We will extend it to protect other media formats in the coming days.
Check more…
To view protected files online by IE