Excuse me sir, Are you saved? (선생님, 구원받으셨습니까?)

If you died tonight, Are you going to heaven? (당신이 만약 오늘 밤 죽는다면, 천국에 갈 수 있습니까?)

For God so loved the world that he gave his one and only Son, that whoever believes in him shall not perish but have eternal life. (하나님이 세상을 이처럼 사랑하사 독생자를 주셨으니 이는 그를 믿는 자마다 멸망하지 않고 영생을 얻게 하려 하심이라)

-John 3:16 (요한복음 3장 16절)

분류 전체보기 (178)
Embeded (3)
.NET (13)
DB (6)
Javascript (0)
Visual Studio (0)
Project (7)
Experience (0)
General (13)
Car (0)
Story (12)
YBC (4)
Book (6)
Movie (1)
구 MiniHomepy (109)
Visitors up to today!
Today hit, Yesterday hit
daisy rss
'Player'에 해당되는 글 1건
2009. 6. 8. 00:48
[이전 블로그에서 이동되었음]
When I used Silverlight video player extension for Blogengine.NET, I found bugs that the articles in video post more than one. One video didn't show and the ohter video show below video that post before. So I saw the html content and found that two id are same in javascirpt call video function.

I fixed the bug in the short time.^^; by using Random class.
But I didn't fix the bug when the video file name is same in differnet post.

Replace \App_Code\Extensions\SilverlightPlayer.cs file to here:



Blogengine.NET에서 Silverlight video player extension 를 사용하는데 글을 올리는데 비디오 파일이 있는 글을 1개 이상 올라갔을 대 개별 포스트 볼 때는 상관없는데 포스트리스트화면에서는 그럴 경우에는 나중에 비디오 파일이 이전에 올린 글의 비디오 파일이 재생되고 하단의 이전 글의 비디오 파일 중 처음 것이 빈칸으로 표시되는 버그를 발견했다.
그래서 html 파일 내용을 보니 비디오 파일을 재생하게할 실버라이트를 로딩할 자바스크립트에서 고유id가 두개가 같은 값으로 세팅되고 있었다.

그래서 버그를 고치기로 했다. 랜덤함수를 사용했다. 짧은 시간에 고친것이라 상단에 언급한 버그는 고쳤으나 보니 같은 파일명일때는 여전한 문제가 있긴하지만
같은 파일의 비디오가 있는 글을 계속 올릴 일은 없을 것같아서 이쯤에서 ...ㅋㅋ

경로 \App_Code\Extensions\SilverlightPlayer.cs  파일을 상단의 링크 파일로 대체하면 된다.
prev"" #1 next