Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. MediaElement Custom Streaming

MediaElement Custom Streaming

Scheduled Pinned Locked Moved WPF
sysadminquestionlounge
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    K L K
    wrote on last edited by
    #1

    Hey guys, I am using Silverlight 2.0.3 MediaElement.Source to stream a video file through my custom localhost/loopback server. The loopback server runs fine when I request the file with Windows Media Player, however when I use MediaElement.Source (SilverLight) the Silverlight MediaElement will not play the file even though the data is being sent by the server. The HTTP Requests that I receieve from Silverlight look like this: HTTP GET http://localhost:8080/blah.wmv UA-CPU: x86 Connection: Keep-Alive Accept: */* Accept-Encoding: gzip, deflate Host: localhost:8080 HTTP GET http://localhost:8080/blah.wmv UA-CPU: x86 Connection: Keep-Alive Accept: */* Accept-Encoding: gzip, deflate Host: localhost:8080 Range: bytes=49152-852853760 HTTP GET http://localhost:8080/blah.wmv UA-CPU: x86 Connection: Keep-Alive Accept: */* Accept-Encoding: gzip, deflate Host: localhost:8080 Range: bytes=65536-852853760 This is very problematic because I receieve multiple HTTP Requests from Silverlight, and only one request from Windows Media Player. The byte range values do not make any sense, the header values are not consistent and seemingly random. So in contrast to Windows Media Player's 1 HTTP Request, the Silverlight MediaElement makes 3 requests and doesn't play the file even though my custom Loopback Server is sending the data. Can anyone shed some light on this?

    madness ? this.isSparta = true : this.isSparta = false;

    B 1 Reply Last reply
    0
    • K K L K

      Hey guys, I am using Silverlight 2.0.3 MediaElement.Source to stream a video file through my custom localhost/loopback server. The loopback server runs fine when I request the file with Windows Media Player, however when I use MediaElement.Source (SilverLight) the Silverlight MediaElement will not play the file even though the data is being sent by the server. The HTTP Requests that I receieve from Silverlight look like this: HTTP GET http://localhost:8080/blah.wmv UA-CPU: x86 Connection: Keep-Alive Accept: */* Accept-Encoding: gzip, deflate Host: localhost:8080 HTTP GET http://localhost:8080/blah.wmv UA-CPU: x86 Connection: Keep-Alive Accept: */* Accept-Encoding: gzip, deflate Host: localhost:8080 Range: bytes=49152-852853760 HTTP GET http://localhost:8080/blah.wmv UA-CPU: x86 Connection: Keep-Alive Accept: */* Accept-Encoding: gzip, deflate Host: localhost:8080 Range: bytes=65536-852853760 This is very problematic because I receieve multiple HTTP Requests from Silverlight, and only one request from Windows Media Player. The byte range values do not make any sense, the header values are not consistent and seemingly random. So in contrast to Windows Media Player's 1 HTTP Request, the Silverlight MediaElement makes 3 requests and doesn't play the file even though my custom Loopback Server is sending the data. Can anyone shed some light on this?

      madness ? this.isSparta = true : this.isSparta = false;

      B Offline
      B Offline
      bigerock123
      wrote on last edited by
      #2

      i'm having this problem too. any luck?

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups