Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nice Plugin #1

Open
jigudo opened this issue Mar 28, 2014 · 9 comments
Open

Nice Plugin #1

jigudo opened this issue Mar 28, 2014 · 9 comments

Comments

@jigudo
Copy link

jigudo commented Mar 28, 2014

I set up the plugin and was experimenting but it does not work.

Would you please send me a screenshot of
(1) acfvideo activity module settings (I don't know about how to specify location)
(2) couse section settings for acfvideo activity or resource

On Amazon cloudfront, will it be Web or RMTP distribution?

@matsuzakit
Copy link
Owner

Hi jigudo

(1)The location is /mod directory, copy all files there .
(2)The current version is acitvity.
Amazon Cloud Front offer HTML streaming. so you need to open only port 80.

acfvideo

@jigudo
Copy link
Author

jigudo commented Mar 29, 2014

Hello Sir,

I was able to get it work with "Web Distribution" (HTTP) of Amazon Cloudfront + S3 but this has couple of drawbacks as user has to wait for progressive download and they cannot skip. The link I used here was "http://dxxxxxxxxxx.cloudfront.net/client.mp4" and it works. This also has a hotlinking issue.

I was trying to find out if this plugin is designed to work with "Streaming Distribution" (RTMP) of Amazon Cloudfront + S3. If so, what would be the example link? I was trying "rtmp://sXXXXXXXXX.cloudfront.net/cfx/st/mp4:client.mp4" but it does not work.

For streaming, do I need to download any other plugins?

Thank you very much for all the help.

Thank you.
Jignashu

@matsuzakit
Copy link
Owner

Hi jigudo .
Activity Setting is correct.It uses 'http' .

http://dxxxxxxxxxx.cloudfront.net/client.mp4

  1. Please check your setting for Acfvide.
    key pair id is like this
    APKAXXXXXXXXXXXX
    private key filename is like this .
    /somedire/pk-APKAXXXXXXXXXXXX.pem
    And apache process needs to access this file , check permission of OS .

  2. Cloud Front ACL :Access Control List.
    In Order to prohibit from non-moodle user's access .
    2.1 Make Cloud Front Policy with keypair id and private key file .
    2.2 Set Cloud Front ACL, remove all rights from 'All users'
    And give Read access to 'Authenticated users' .

    CoudBerry Explore is useful for this working.
    http://www.cloudberrylab.com/free-amazon-s3-explorer-cloudfront-IAM.aspx

acl

@jigudo
Copy link
Author

jigudo commented Mar 30, 2014

Hello Sir,

Thank you for the answer. I spend sometime in further modifying the plug-in and testing it. I made some changed to make it work with rmtp protocol.

(1) I deleted the lines which will add http:// as prefix on externalacfvideo field.
(2) I modified the player files to replace those with VideoJS player current version.
(3) I also modified the html body in player.php file.
(4) I changed the $videurl variable as follows:
<Cloudfront RMTP distribution domain/cfx/st/>.'&".$dst.$signature$keyId
(5) Only put mp4:file.mp4 in externalafcvideo file.

With this now, files from cloudfront can be streamed as video JS player as flash files.

I have two questions for further customization:
(1) To implement vim.css skin for the player
(2) Implement captions and subtitles in the player with controls
(3) Enable full screen control in moodle activity for acfvideo (not the popup)

I would appreciate any suggestions.

Thank you.

@matsuzakit
Copy link
Owner

Hi jigudo

(2) Implement captions and subtitles in the player with controls

I used this code in

VTT file has the name of $idenum.vtt and is in captions/ directory .

(3) Enable full screen control in moodle activity for acfvideo (not the popup)
I tried it but have had hard time :)
Because the difference between browsers, and moodle versions, it does the difference behavior.
If you help me, I will be very happy .

@matsuzakit
Copy link
Owner

code

@jigudo
Copy link
Author

jigudo commented Apr 27, 2014

I cannot see the icon for ACF video in Moodle. How can I get back the icon?

@matsuzakit
Copy link
Owner

Hi jidugo

Where do you see no icon ? Adding av activity screen ?

@apfgit
Copy link

apfgit commented Oct 8, 2014

Hello matsuzakit
I am very interested in this addon.
I uploaded to /mod directory, and went to 'notifications' so I could install it, but nothing happens, it's like I never uploaded.
I am using the latest moodle version.

What am I doing wrong.
Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants