You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,7 @@ Changes from Official
28
28
* If updating from version older than 1.0.6, you'll need to enter your Cloudflare API Token and Cloudflare Account ID in the configuration page.
29
29
* Added admin setting for signed URL/token duration (default is otherwise 1 hour).
30
30
* Added admin toggle for whether or not to use signed URLs/tokens.
31
+
* Can select Cloudflare media domain, including new account specific sub-domain.
31
32
32
33
33
34
To-Do
@@ -70,6 +71,9 @@ When this is checked [x], videos are accessed using a temporary time-limited tok
70
71
### Signed URL Expiration ###
71
72
When **Use Signed URLs** is checked [x], this setting controls how long any particular token / signed ULR is valid for **in minutes**. The Cloudflare default, is 60 minutes. Generally, you'd want to make sure this is larger than your longest video.
72
73
74
+
### Preferred Media Domain ###
75
+
This option allows you to select from a small list of different Cloudflare media domains. This domain is used when delivering content to your users. The 3rd option is a unique subdomain specific to your Cloudflare account. This option will only be presented if you have at least one video already uploaded to your Cloudflare Stream account.
. '<small class="form-text text-muted">' . esc_html__( 'Set which Cloudflare domain is used by your users, to access video content. Changing this may require an update to your sites Content Security Policy.', 'cloudflare-stream-wordpress' ) . '</small>';
echo'<small class="form-text text-muted">' . esc_html__( 'Set which Cloudflare domain is used by your users, to access video content. Changing this may require an update to your sites Content Security Policy.', 'cloudflare-stream-wordpress' ) . '</small>';
182
189
}
183
190
184
191
/**
@@ -263,6 +270,16 @@ public function onboarding_admin_notices() {
263
270
}
264
271
}
265
272
273
+
/**
274
+
* Try to fetch and save the Cloudflare Account ID using Zone ID.
275
+
*
276
+
* @since 1.0.9
277
+
*/
278
+
publicfunctionget_account_subdomain() {
279
+
$api = Cloudflare_Stream_API::instance();
280
+
return$api->get_account_subdomain();
281
+
}
282
+
266
283
/**
267
284
* Try to fetch and save the Cloudflare Account ID using Zone ID.
0 commit comments