wiki:Testing-Smooth-Streaming

Testing Smooth Streaming

back


The players aren't always too kind on their error messages. The best way to make sure that it is setup correctly is to use a commandline tool like 'wget' or 'curl'.

For these examples we assume that you have encoded a video to multiple bit rates and the files are stored in the $(DOCUMENT_ROOT)/video.ssm directory.

Directory layout

Do you have all the necessary files in your $(DOCUMENT_ROOT)/video.ssm/ directory?

It should be similar to this:

video_400.ismv
video_748.ismv
video_1394.ismv
video_2600.ismv
video.ism
video.ismc

Manifest file

wget -S -O manifest http://localhost/video.ssm/manifest

This should simply return the video.ismc file as stored in your $(DOCUMENT_ROOT)/video.ssm directory.

Possible things to check:

  • Check the rewrite rule that remaps the manifest file.

A video fragment (without rewrite rules)

wget -S -O video.mp4 "http://localhost/video.ssm/video.ism?bitrate=400000&video=0"

Make sure that you substitute the 40000 bit rate with one that you are using.

Do you see the 'X-Mod-Smooth-Streaming: version=1.0.8' in the response header?

Possible things to check:

  • Have you loaded the mod_smooth_streaming module?
  • Have you mapped the .ism extension to use the mod_smooth_streaming module?

A video fragment (with rewrite rules)

wget -S -O video.mp4 "http://localhost/video.ssm/QualityLevels(400000)/Fragments(video=0)"

Possible things to check:

  • Check your rewrite log and check if the above request is rewritten to the URL by the previous example.

Silverlight security settings

Make sure you have a  clientaccesspolicy.xml in your $(DOCUMENT_ROOT).

<?xml version="1.0" encoding="utf-8" ?>
<access-policy>
<cross-domain-access>
<policy>
<allow-from http-request-headers="*">
<domain uri="*" />
</allow-from>
<grant-to>
<resource path="/" include-subpaths="true" />
</grant-to>
</policy>
</cross-domain-access>
</access-policy>

Common errors

System.Exception 4001 An error has occured.

The PDK/EE3 Silverlight players only work with client manifests containing exactly *one* audio track.

Feedback

If you have any questions, thoughts or ideas on Smooth Streaming you can leave a message on our forum.