MP4 file not playing in Mac Safari
Last Post 01/19/2016 4:24 PM by Andy Stephenson DNN Creative. 1 Replies.
Author Messages
Sudhir Jadhav
Posts:


--
01/19/2016 8:26 AM
    Hi,

    I am facing an issue with playing MP4 video file on Mac SAFARI.

    using DNN Version: 07.04.01

    Scenario
    - I have Secured Directory at Portal/0/. Secured Directory name is: "DNNVideos".

    - Folder permissions are set for "Registered Users" only. not for "All Users". This means only authorized user can access the Video.

    - I have one demo.mp4 file into the DNNVideos directory. After the Directory Sync, the physical file became "demo.mp4.resources"

    - I have a module where I have a Anchor Link which opens the Video file upon clicking on it.

    - Anchor source has been set using following code:
    string fileSource = "Portals/" + PortalId + "/LinkClick.aspx?fileticket=" + fi.FileId.ToString() + "&portalid=" + PortalId + "×tamp=" + DateTime.Now.ToString("yyyyMMddHHmmssfff");

    - On the site, log in using Valid User and go to the page where video link is provided.

    - Clicking on the Link will open the video in the Browser itself. This is what is required to play video in Browser.

    - This functionality works verywell with the Chrome, IE, FireFox.

    - But it fails with the Mac Safari Browser.

    - The link generated is: http://dnndev.me/LinkClick.aspx?fil...3212257638

    - One weird thing I noticed that if i change the Permission (from DNN File Management) of the secured folder to Read+Write for "All Users" then it works fine with Mac Safari as well.

    - But this cannot be the solution since I need to protect the file from anonymous users.
    Andy Stephenson DNN Creative
    DNN Creative Staff
    Nuke Master VI
    Nuke Master VI
    Posts:169


    --
    01/19/2016 4:24 PM
    Hi Sudhir,

    I don't have a MAc to test your problem, but I will tell you a secret

    These folder level security settings don't really protect much the files placed inside these so called "protected" folders. If the user knows the full path to the file, they will still be able to open them up.

    My point is that you can leave the folder access unrestricted so that the file can be open properly.

    My 2 cents.

    Sincerely,
    Andy


    ---