Have you run SilverlightSpy with reflector over the bunny code?

Have you checked in firebug that it's actually contacting the server?

A blog post on how this all works from end to end would rock hey :)


From: [email protected] [mailto:[email protected]] 
On Behalf Of Ross Jempson
Sent: Tuesday, 19 May 2009 11:45 AM
To: [email protected]
Subject: RE: Adaptive streaming

Yes, I am planning to use a basic media element.

I tried code below, but it basically just showed a blank screen.  I tried a 
couple of things like AutoPlay = true / false

I haven't had time to look at it again, but was mostly wondering if I was on 
the right track.

Cheers.

Ross

<MediaElement AutoPlay="False" IsMuted="False" Grid.Row="0"
              x:Name="melMain" HorizontalAlignment="Stretch" 
VerticalAlignment="Stretch"/>


public IMediaStreamSourceFactory MediaStreamSourceFactory { get; set; }
private MediaStreamSource m_mediaStreamSource;

...

this.MediaStreamSourceFactory = new AdaptiveStreamingSourceFactory();

...

m_mediaStreamSource = MediaStreamSourceFactory.Create(melMain, new 
Uri("http://mydomain.com.au/Big_Buck_Bunny/Big Buck Bunny.ism/Manifest"));

...

melMain.SetSource(m_mediaStreamSource);

melMain.Position = TimeSpan.Zero;

melMain.Play();

....

/// <summary>
    /// Adpative streaming object factory
    /// </summary>
    internal class AdaptiveStreamingSourceFactory : IMediaStreamSourceFactory
    {
        /// <summary>
        /// Creates a MediaStreamSource object.
        /// </summary>
        /// <param name="mediaElement">The MediaElement to host the 
stream.</param>
        /// <param name="uri">The string providing the network location of the 
video to be streamed</param>
        /// <returns>The new MediaStreamSource object</returns>
        public virtual MediaStreamSource Create(MediaElement mediaElement, Uri 
uri)
        {
            return new AdaptiveStreamingSource(mediaElement, uri);
        }
    }

From: Jordan Knight [mailto:[email protected]]
Sent: Tuesday, 19 May 2009 11:32 AM
To: [email protected]
Subject: RE: Adaptive streaming

Hey Ross,

Is the MediaElement in it's raw form no good?

The basic process is (and from my research it's not particularly well 
documented at this stage) is that you need to take the MediaStreamSource class 
(cannt remember its name) from the AdaptiveStreaming.dll and use it to load the 
video from your server.

I know I'm being terribly vague I'm sorry, I've done this once before but I 
cannot for the life of me find the sample code.

From: [email protected] [mailto:[email protected]] 
On Behalf Of Ross Jempson
Sent: Tuesday, 19 May 2009 11:09 AM
To: [email protected]
Subject: Adaptive streaming

Hi there,

I was wondering if anyone has implemented  a custom media player using adaptive 
streaming in a SL client?  I have the IIS side up and running, and have 
deployed a test page using a player generated by Expression encoder.  It 
performs beautifully on a hosted virtual server in the wild, although we 
haven't done any load testing yet.

My requirement is that I have to show streaming video, but where the user 
doesn't have control over playing / pausing ... , therefore I don't want to 
show the normal player style UI.  The video will be run in full screen when the 
user first hits a screen then will fade and keep running in the background.
I haven't found a player that doesn't have a UI or lets me hide the UI.  Eg 
http://www.openvideoplayer.com/  looks good but I couldn't work out how to hide 
the UI.

I found the source code for one of the players  -> C:\Program Files\Microsoft 
Expression\Encoder 2\Templates\en\SL2Standard\Source and figured out roughly 
how it works.  The key is a project/dll AdaptiveStreaming.dll that does the 
hard work.

I referenced AdapativeStreaming.dll and wired it up how I expected but it 
didn't work on my first attempt.  I haven't had time to go back and look at it 
further, and don't expect you guys to debug my app.

I am looking for advice :


1.       Does anyone know of a player I can use that has no UI or the UI can be 
hidden?

2.       Or, am I on the right track using the Encoder's AdaptiveStreaming 
library?

3.       If the answer to 2 is Yes,  Is it legal for me to use the 
AdaptiveStreaming library?  I expect so, given the source code is distributed 
but thought I would ask.


Cheers.

Ross
________________________________
Support procedure: https://www.codify.com/lists/support
List address: 
[email protected]<mailto:[email protected]>
Subscribe: 
[email protected]<mailto:[email protected]>
Unsubscribe: 
[email protected]<mailto:[email protected]>
List FAQ: http://www.codify.com/lists/ozsilverlight
Other lists you might want to join: http://www.codify.com/lists

No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.329 / Virus Database: 270.12.32/2118 - Release Date: 05/16/09 
17:05:00

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
________________________________
Support procedure: https://www.codify.com/lists/support
List address: 
[email protected]<mailto:[email protected]>
Subscribe: 
[email protected]<mailto:[email protected]>
Unsubscribe: 
[email protected]<mailto:[email protected]>
List FAQ: http://www.codify.com/lists/ozsilverlight
Other lists you might want to join: http://www.codify.com/lists
________________________________
Support procedure: https://www.codify.com/lists/support
List address: 
[email protected]<mailto:[email protected]>
Subscribe: 
[email protected]<mailto:[email protected]>
Unsubscribe: 
[email protected]<mailto:[email protected]>
List FAQ: http://www.codify.com/lists/ozsilverlight
Other lists you might want to join: http://www.codify.com/lists

No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.329 / Virus Database: 270.12.32/2118 - Release Date: 05/16/09 
17:05:00
--------------------------------------------------------------------------------
Support procedure: https://www.codify.com/lists/support
List address: [email protected]
Subscribe: [email protected]
Unsubscribe: [email protected]
List FAQ: http://www.codify.com/lists/ozsilverlight
Other lists you might want to join: http://www.codify.com/lists

Reply via email to