This is a migrated thread and some comments may be shown as answers.

Set Source of Media Player to HTTP Handler

1 Answer 32 Views
MediaPlayer
This is a migrated thread and some comments may be shown as answers.
Dean
Top achievements
Rank 1
Dean asked on 14 Jul 2014, 06:58 AM
I am having trouble setting the source of a Media Player to a asp.net webforms HTTP Handler. 

I am wondering if anyone can tell me if it is possible to hook up the MediaPlayer to a HTTP Handler. 

Example Code is

videoPlayer.Source = String.Format("localhost:1099\<Project>.Video.ashx?FileLocation={1}", "Video.mp4")
Dim sources As String() = {"Video1.mp4", "Video2.mp4"}
For Each source As String In sources
    If Not String.IsNullOrEmpty(source) Then
        Dim videoSources As New MediaPlayerSource()
        videoSources.Path = String.Format("localhost:1099\<Project>.Video.ashx?FileLocation={1}", source)
        videoPlayer.Sources.Add(videoSources)
    End If
Next

1 Answer, 1 is accepted

Sort by
0
Angel Petrov
Telerik team
answered on 17 Jul 2014, 06:19 AM
Hi Dean,

I am sorry to say but setting the source path in such a manner will not work. In order to resolve the problem I suggest setting the path to point directly to the video location.

Regards,
Angel Petrov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
MediaPlayer
Asked by
Dean
Top achievements
Rank 1
Answers by
Angel Petrov
Telerik team
Share this question
or