smooth-streaming


how to hook ISmoothStreamCache object in SMFPlayer (Smooth Streaming Development kit)


I am using SMFPlayer in SilverLight Smooth Streaming Development Kit.
And I am able to play video content, however for some reason we want to have
control over data being downloaded and parsed. For that Purpose we want to start using
ISmoothStreamingCache interface.
I want to know what is the right approach to hook ISmoothStreamingCache object in SMFPlayer.
Thanks in advance
Big O
The ISmoothStreamingCache's implementation should also implement IPlugin interface. It should also be decorated with ExportAdaptiveCacheProvider attribute.
Then it will be automatically hooked to the SMFPlayer.
Below is skeleton code for class:
using System;
using System.Collections.Generic;
using System.IO.IsolatedStorage;
using System.Net;
using Microsoft.SilverlightMediaFramework.Plugins;
using Microsoft.SilverlightMediaFramework.Plugins.Metadata;
using Microsoft.Web.Media.SmoothStreaming;
namespace MyNamespace
{
[ExportAdaptiveCacheProvider(PluginName = "My Smooth Streaming Cache")]
public class MySmoothStreamingCache : ISmoothStreamingCache, IPlugin
{
public MySmoothStreamingCache()
{
// Your implementation
}
#region ISmoothStreamingCache members
public IAsyncResult BeginRetrieve(CacheRequest request, AsyncCallback callback, object state)
{
// Your implementation
}
public CacheResponse EndRetrieve(IAsyncResult ar)
{
// Your implementation
}
public IAsyncResult BeginPersist(CacheRequest request, CacheResponse response, AsyncCallback callback, object state)
{
// Your implementation
}
public bool EndPersist(IAsyncResult ar)
{
// Your implementation
}
public void OpenMedia(Uri manifestUri)
{
// Your implementation
}
public void CloseMedia(Uri manifestUri)
{
// Your implementation
}
#endregion
#region IPlugin members
public bool IsLoaded { get; private set; }
public void Load()
{
IsLoaded = true;
}
public event Action<IPlugin, Microsoft.SilverlightMediaFramework.Plugins.Primitives.LogEntry> LogReady;
public event Action<IPlugin, Exception> PluginLoadFailed;
public event Action<IPlugin> PluginLoaded;
public event Action<IPlugin, Exception> PluginUnloadFailed;
public event Action<IPlugin> PluginUnloaded;
public void Unload()
{
IsLoaded = false;
}
#endregion
}
}

Related Links

Playready encrypted test SMOOTH content with a license URL and token
Available encoder to IIS smooth streaming
How to play smooth streaming video in Chromecast?
how to hook ISmoothStreamCache object in SMFPlayer (Smooth Streaming Development kit)
Play segmented, archived video with Microsoft Smooth Streaming
DFXP caption files to ismt smooth streaming format

Categories

HOME
qlikview
spring-boot
algolia
netty
pelican
microcontroller
opencv4android
spotfire
overrides
terminal
servicenow
segmentation-fault
soap-client
aws-sdk-cpp
velocity
vichuploaderbundle
background-image
simd
caldav
datasource
email-client
aspxgridview
workflow-foundation
libxml2
edirectory
tikz
jcr
scene7
circle
http-proxy
form-fields
word-wrap
vpython
api-key
ack
google-chrome-storage
yank
xmldom
import.io
cloudconvert
standard-error
audio-fingerprinting
sp
programming-pearls
try-catch-finally
overhead
disassembly
wicketstuff
scrollmagic
robotc
therubyracer
lattice
consolidation
netlink
magick.net
python-rq
pyshark
jmap
android-progressbar
custom-build-step
music-player
containstable
apache2-module
computability
libgcrypt
redquerybuilder
windows-phone-8-emulator
opennebula
veeam
nfa
bungeecord
google-experiments
mind-manager
nsurlrequest
xts
drawable
mvcgrid
sendy
rssi
grunt-wiredep
google-mirror-api
friendly-id
myrrix
playing-cards
usersettings
android-library
asp.net-4.0
http-compression
pudb
gwt2
simplemembership
brew
feincms
shapado
win-prolog
jqzoom
umfpack
discussion-board
openwrap
funambol
cryptolicensing
response-time
iphone-maps
linq-to-mysql
for-xml
large-data-volumes
pkcs#7
stackless

Resources

Encrypt Message