-3

I downloaded a media player control from the Net then added in my toolbox. Then I drag-and-dropped it to my web page but it's not working...

cc1:Media_Player_Control ID="Media_Player_Control1" runat="server" 
                MovieURL="./video/yaarian.wmv" 

this is my code

user2316116
  • 6,726
  • 1
  • 21
  • 35
zaira batool
  • 1
  • 2
  • 5

2 Answers2

0

Make sure that the path is correct e.g.

  • remove ./ if video is located in the child folder named video
  • or use absolute path e.g. /pages/video/yaarian.wmv
user2316116
  • 6,726
  • 1
  • 21
  • 35
  • 1st time path was just like that which you are saying but that was working. so i changed the path style to try this may be it will work. but it didn't – zaira batool May 28 '14 at 04:02
  • "path was just like that ... but that was working." If it was _working_ then what is the problem? – user2316116 May 28 '14 at 05:48
  • So, what is the issue? is video file is in the video folder? Did you try to call wmv file directly in the browser (to test the path)? – user2316116 May 28 '14 at 19:00
  • yes video is in the video folder. and i have checked by every method but issue is that video is not playing – zaira batool May 29 '14 at 18:07
0

Check the control registration tag and make sure you have the assembly loaded in your bin folder:

<%@ Register TagPrefix="cc1" Namespace="MyApp.Controls" Assembly="MyApp" %>

Then, try the following:

<cc1:Media_Player_Control ID="Media_Player_Control1" runat="server" 
                MovieURL="~/video/yaarian.wmv" runat="server" />
Community
  • 1
  • 1
IrishChieftain
  • 15,108
  • 7
  • 50
  • 91