web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Error : Unsupported video type or invalid file path

(0) ShareShare
ReportReport
Posted on by 402

Hi,

I am trying to load video from a file system server which is mapped as a drive on the CRM Server. The video type is MP4.

CRM 2013 SP1

Internet Explorer 11

*This post is locked for comments

I have the same question (0)
  • Mir Hassan Ali Profile Picture
    1,720 on at

    Hi Mohammed

    Are you trying to upload the video file as a note attachment? Can you please share some more details about your upload process.

    Thanks

  • Mohammed Fakhri Profile Picture
    402 on at

    Hi Hassan,

    I am not trying to upload. But the video tag is present in the HTML WebResource which is added in the CRM Form.

    I am setting the src property of the video to the appropriate path where the video is located using javascript.

    <video width="100%" height="400" id="videoPlayer" controls="">

           <source src="" type="video/mp4">

       </video>

    <script type="text/javascript">

           if (window.parent.Xrm.Page.getAttribute("videoname").getValue() != null) {

               var src = "V:\\MAPS Training\\eLearningProd\\Videos\\" + window.parent.Xrm.Page.getAttribute("videoname").getValue();

               var player = document.getElementById("videoPlayer");

               player.setAttribute("src", src);

               $("#videoPlayer").find("source").data("src", src);

               player.load();

           }

           document.getElementById("videoPlayer").addEventListener("ended", function () {

           }, false);

           //alert('Event Added');

       </script>

  • Mir Hassan Ali Profile Picture
    1,720 on at

    You said that the video file is present on a file system mapped as a drive on your CRM server. But the web resource is running on your client and the client might not have access to that mapped drive. Can you make sure you can access the path "V:\\MAPS Training\\eLearningProd\\Videos\\" on the client where you are accessing CRM web app.

    Regards

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans