Click here to Skip to main content
15,889,810 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello All,

I have an issue in Sharepoint 2013 related to youtube embed iframe links that i copy and paste from youtube embed video link and place it in my video library (Please see this : SPVideo image 1).

It gets uploaded successfully and get played successfully from the "Site Contents" where the video has been uploaded.

But when i use that video in an xsl Webpart it shows "Media Failed to Load", below is xsl code :

XML
<div class="col-lg-4 col-md-4 col-xs-6 thumb">   	
  	    <a class="thumbnail" href="#" data-toggle="modal" data-target=".bs-example-modal-lg">   		
			<img src="{@ImageUrl}" data-desc="{substring(@Description,0,300)}" data-Video="{@LinkUrl}"  önclick="openInDialog('{@Title}',800,800,false,true,false,'/Pages/MediaWebPart.aspx?{@LinkUrl}.wmv')" ></img>
		</a> 					
		<span>
			<xsl:value-of select="substring(@Title,0,100)"></xsl:value-of>
		</span> 
    </div>     


Here are the image links of dropbox where you can refer to my steps to problem that i am facing :

1. Pasting Youtube embed code in video gallery: SPVideo image 1
2. After saving it comes to Videopage (which plays video) : SPVideo image 2
3. XSL Webpart list page where all videos are listed in image video(from above xsl code) : SPVideo image 3
4. A popup which opens a Dialog (from above xsl code) : SPVideo image 4

I have been trying to search this issue but unable to resolve this from 2 days.
Please help if you have any solution. Any help would be appreciated.

Thank you.
Posted
Updated 18-Jun-14 1:08am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900