Set Source of Media Player to HTTP Handler

2 posts, 0 answers
  1. Dean
    Dean avatar
    1 posts
    Member since:
    Jul 2013

    Posted 14 Jul 2014 Link to this post

    I am having trouble setting the source of a Media Player to a 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)
        End If
  2. Angel Petrov
    Angel Petrov avatar
    1075 posts

    Posted 17 Jul 2014 Link to this post

    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.

    Angel Petrov

    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.

Back to Top