HTML5 Player in ASP.NET
-
Hi, I want to Bind MP4 video file from Server to Lieral through c# code using HTML5 Player. i could not able to set the path from the server.I tried a lot of samples from internet but it was not working in either of the browsers. Here is the Function i used to call the and was not able to set the source path:**
this.Literal1.Text =GetWmaObject(mySourceUrl, isFullSize);
private string GetWmaObject(string sourceUrl, bool isFullSize)
{
string myWidthAndHeight = "";
string myObjectTag = "";
sourceUrl = sourceUrl + "";
sourceUrl = sourceUrl.Trim();if (sourceUrl.Length > 0) { //Continue. } else { throw new System.ArgumentNullException("sourceUrl"); } if (isFullSize) { myWidthAndHeight = ""; } else { myWidthAndHeight = "width='640' height='480'"; } sourceUrl = sourceUrl + ""; sourceUrl = sourceUrl.Trim(); if (sourceUrl.Length > 0) { myObjectTag = myObjectTag + ""; myObjectTag = myObjectTag + ""; myObjectTag = myObjectTag + ""; myObjectTag = myObjectTag + ""; myObjectTag = myObjectTag + ""; myObjectTag = myObjectTag + ""; myObjectTag = myObjectTag + ""; //myObjectTag = myObjectTag + ""; myObjectTag = myObjectTag + "
**
-
Hi, I want to Bind MP4 video file from Server to Lieral through c# code using HTML5 Player. i could not able to set the path from the server.I tried a lot of samples from internet but it was not working in either of the browsers. Here is the Function i used to call the and was not able to set the source path:**
this.Literal1.Text =GetWmaObject(mySourceUrl, isFullSize);
private string GetWmaObject(string sourceUrl, bool isFullSize)
{
string myWidthAndHeight = "";
string myObjectTag = "";
sourceUrl = sourceUrl + "";
sourceUrl = sourceUrl.Trim();if (sourceUrl.Length > 0) { //Continue. } else { throw new System.ArgumentNullException("sourceUrl"); } if (isFullSize) { myWidthAndHeight = ""; } else { myWidthAndHeight = "width='640' height='480'"; } sourceUrl = sourceUrl + ""; sourceUrl = sourceUrl.Trim(); if (sourceUrl.Length > 0) { myObjectTag = myObjectTag + ""; myObjectTag = myObjectTag + ""; myObjectTag = myObjectTag + ""; myObjectTag = myObjectTag + ""; myObjectTag = myObjectTag + ""; myObjectTag = myObjectTag + ""; myObjectTag = myObjectTag + ""; //myObjectTag = myObjectTag + ""; myObjectTag = myObjectTag + "
**
Check this Tip/Trick HTML5/ASP.NET Video Player[^]
thatraja
FREE Code Conversion VB6 ASP VB.NET C# ASP.NET C++ JAVA PHP DELPHI ColdFusion
HTML Marquee & its alternativesNobody remains a virgin, Life screws everyone :sigh:
-
Check this Tip/Trick HTML5/ASP.NET Video Player[^]
thatraja
FREE Code Conversion VB6 ASP VB.NET C# ASP.NET C++ JAVA PHP DELPHI ColdFusion
HTML Marquee & its alternativesNobody remains a virgin, Life screws everyone :sigh:
Hi This is for You Tube, i want to retrieve the Path from the server. Thanks Murali