When you are working with Asset library in SharePoint 2013. It is very important to note that how video files are stored and managed in that library.
By default, when you create Asset library it will come with Video content type. This content type will be used for managing the video files. When you upload a video file "sampleVideo.mp4" with the name "sameVideo". Then your video file will be accessible with below URL
http://<your site>/<your asset library>/sampleVideo/sampleVideo.mp4
This URL is little different from other SharePoint uploaded document URLs. If you observe the above URL, name of the uploaded video file "sampleVideo" is additionally included. It means, when you upload a video file, it will create a hidden folder based on file name to store the following
After uploading the file, if you change the name "sampleVideo" to "testVideo" then your video file URL will be changed to below
http://<your site>/<your asset library>/testVideo/sampleVideo.mp4
So, when you are accessing or displaying video files dynamically via code with URL then you need to construct the URL in the above format.
By default, when you create Asset library it will come with Video content type. This content type will be used for managing the video files. When you upload a video file "sampleVideo.mp4" with the name "sameVideo". Then your video file will be accessible with below URL
http://<your site>/<your asset library>/sampleVideo/sampleVideo.mp4
This URL is little different from other SharePoint uploaded document URLs. If you observe the above URL, name of the uploaded video file "sampleVideo" is additionally included. It means, when you upload a video file, it will create a hidden folder based on file name to store the following
- Video file
- Preview images
- Additional content
After uploading the file, if you change the name "sampleVideo" to "testVideo" then your video file URL will be changed to below
http://<your site>/<your asset library>/testVideo/sampleVideo.mp4
So, when you are accessing or displaying video files dynamically via code with URL then you need to construct the URL in the above format.
No comments:
Post a Comment