Mark L
Forum Replies Created
-
Forum: Plugins
In reply to: [Videopack] Video doesn't play on iPhone5Hi Kyle,
I have just discovered something quite surprising. Since I started this thread I have abandoned my protection plugin but have been experimenting with FUSE mounted google storage buckets as my uploads directory. This makes sense if you’re trying to self host video. If the default uploads directory is changed to something that has a hyphen in it, like “media-vault” or “bilby-bucket,” ios devices will simply not play a video, whereas desktops, androids and even ios simulators will happily play them. Removing the hyphen fixes it right up.
Isn’t that amazing?!
Thanks for your perseverance with this thread and for the great plugin!
Mark.
- This reply was modified 7 years, 5 months ago by Mark L.
Forum: Plugins
In reply to: [WP Encrypt] Issuance for IP addresses Error: Initial install mistakeActually it turned out that one of the other networks in my multinetwork still had an IP address as siteurl. Once that was resolved, the issuance completed with no errors.
Forum: Plugins
In reply to: [Videopack] Video doesn't play on iPhone5Hi Kyle and sorry for the long delay in getting back to you.
I have done a bit more testing and found that it is the media-vault that is causing the problem with mobiles, but I need to use it and I can’t see what the problem is. Do you know why specifically a mobile browser would be having this problem? The media-vault plugin protects media by saving uploaded files to a specific directory in the wp-content folder. When an attachment located in that directory is requested by a browser, it redirects to …index.php?mgjp_mv_file={file name requested}, which checks if the user is logged in. If so, it inserts mgjp_mv_download=safeforce into the URL and then redirects the browser to the required file. If not a “protected” image is displayed. The .htaccess rewrite is:
# Media Vault Rewrite Rules RewriteRule ^(?:[_0-9a-zA-Z-]+/)?wp-content/uploads(?:/sites/[0-9]+)?(/_mediavault/.*\.\w+)$ index.php?mgjp_mv_file=$1 [QSA,L] RewriteCond %{QUERY_STRING} ^(?:.*&)?mgjp_mv_download=safeforce(?:&.*)?$ RewriteRule ^(?:[_0-9a-zA-Z-]+/)?wp-content/uploads(?:/sites/[0-9]+)?(/.*\.\w+)$ index.php?mgjp_mv_file=$1 [QSA,L] # Media Vault Rewrite Rules End
I have added you as a user with your email above. Reset password at https://bilbycare.com.au/test/wp-login.php?action=lostpassword. You could check out post at https://bilbycare.com.au/test/snapshot/v2/ on desktop and mobile to see the effect I am talking about.
I really appreciate any advice you can offer… Thanks.
Forum: Plugins
In reply to: [Media Vault] Protected MP3 files not playing correctly in ChromeHi Thomas,
I am wondering if you ever resolved this issue? I am experiencing a similar problem with protected .mp4 files and mobile browsers.
MarkForum: Plugins
In reply to: [Videopack] Video doesn't play on iPhone5Ok – That didn’t work. AND I have worked out it totally does have to do with the protection system I have going. I mave a must use plugin that does the following:
add_filter('upload_dir', 'maxi_custom_upload_dir'); /** * Changes the upload directory to what we would like, * instead of what WordPress likes. */ function maxi_custom_upload_dir($upload) { $upload['path'] = $upload['basedir'] . '/_mediavault/'.current_time('Y'). '/' .current_time('m'); $upload['url'] = $upload['baseurl'] . '/_mediavault/'.current_time('Y'). '/' .current_time('m'); return $upload; }
Could it be that when the video is encoded and replaced on upload it does not go into the expected directory?
Thanks again and sorry about the last few posts.
Forum: Plugins
In reply to: [Videopack] Video doesn't play on iPhone5Hi Again,
I have just changed lines from 6259 in video-embed-thumbnail-generator.php to:
$html .= $kgvid_postmeta["url"]; /* '[KGVID'; if ( !empty($kgvid_postmeta['poster']) && empty($kgvid_postmeta['poster-id']) ) { $html .= ' poster="'.$kgvid_postmeta["poster"].'"'; } if ( !empty($kgvid_postmeta['width']) ) { $html .= ' width="'.$kgvid_postmeta["width"].'"'; } if ( !empty($kgvid_postmeta['height']) ) { $html .= ' height="'.$kgvid_postmeta["height"].'"'; } $html .= ']'.$kgvid_postmeta["url"].'[/KGVID]<br />'; */
This has prevented any of the shortcoding on any of the inserted media, which seems to solve my problem. I know it is a total hack and I’d love to get to the bottom of the problem, but this serves for now. I don’t need fancy galleries etc.
Beautiful plugin.
Thanks again – Mark.
Forum: Plugins
In reply to: [Videopack] Video doesn't play on iPhone5Hi Again,
Sorry for being a bit of a headache and thanks again for the help.
OK I can see that test 12 won’t load on any browser. Test 13 does load on mobile and desktop. I dont think it is a protection issue as both posts use the same URL for the video file.
In any case I can only see one file in the media library. Is there any way to access the other files via the media library? When I unprotect the file, it is moved to a different directory and the meta for that file is updated to reflect the new path. Perhaps this is only happening for one of the files and the others are remaining in the protected directory?
All my users are members with access to the protected directories so it may not be such a big deal. Its really just for the purpose of troubleshooting this player issue that I am trying to provide unprotected media.
Is there a way I can easily keep the other functions of the plugin without it automatically using the [KGVID] tags when the insert media button is used?
Thanks again –
Mark.Forum: Plugins
In reply to: [Videopack] Video doesn't play on iPhone5Hi again Kyle,
I updated the Test 12 post to use the unprotected file. The path to the media file in test 12 and Test 13 are the same.
[video src="https://bilbycare.com.au/test/wp-content/uploads/sites/9/2016/07/capturedvideo-5.mp4" /]
The only difference is the [KGVID] tag is used in 12 whereas in 13 the source URL is included in the post content without any tags.
Thanks – Mark
Forum: Plugins
In reply to: [Videopack] Video doesn't play on iPhone5Hi Again,
I just tried inserting the video without using the [KGVID] tags and it works on mobile:
https://bilbycare.com.au/test/snapshot/test-13/
This is weird as I have the player setting set to Default in the Video Playback Settings.
Could there be a setting somewhere else that is overriding this setting?
I’ll keep looking/
Mark
Forum: Plugins
In reply to: [Videopack] Video doesn't play on iPhone5Hi again,
By default my media files are protected. This does not seem to be relevant to the issue as when I am logged in and can access the media I get the same result.
I have unprotected the media on the post in the link above and can play the video directly using the media url on the desktop and on my mobile! But when I try viewing the post on the mobile I get the error: Error loading this resource.
Its like the player is not working ion the mobile.
https://bilbycare.com.au/test/wp-content/uploads/sites/9/2016/07/capturedvideo-5.mp4
Thanks again,
Mark.Forum: Plugins
In reply to: [Videopack] Video doesn't play on iPhone5Forum: Plugins
In reply to: [Videopack] Video doesn't play on iPhone5Hi Kyle,
Even doing as you say, where the video seems to end up in the media library as a .mp4 file, and displays properly on desktop, will not display on mobile.
Here’s a screenshot of my settings.
I have also tried unticking everything except for the replace original with H.264 with the same result.
Any help would be appreciated.
Thannks – Mark
Forum: Plugins
In reply to: [Media Vault] Add media modal protectionAdding the following code into the directory wp-content/mu-plugins/ activates a must use plugin explained in a bit more detail here .
This plugin changes the default upload url to
example.com/wp-content/uploads/sites/n/_mediavault/year/month/ for multisite and
example.com/wp-content/uploads/_mediavault/year/month/ for single siteThis default behaviour applies to anything uploaded from anywhere which negates the need to add an enable protection option to the add media modal.
<?php /* Plugin Name: Custom Upload Dirs Description: Changes the upload directory to what we would like, instead of what WordPress likes. Author: Mark Version: 1.0 Author URI: https://maxicheapit.com.au/ */ add_filter('upload_dir', 'maxi_custom_upload_dir'); /** * Changes the upload directory to what we would like, * instead of what WordPress likes. */ function maxi_custom_upload_dir($upload) { $upload['path'] = $upload['basedir'] . '/_mediavault/'.current_time('Y'). '/' .current_time('m'); $upload['url'] = $upload['baseurl'] . '/_mediavault/'.current_time('Y'). '/' .current_time('m'); return $upload; } ?>
Forum: Plugins
In reply to: [Media Vault] Default protection for files uploaded as attachments to poststsHi Max,
I have found that adding the rewrite rules generated in the .htaccess file to the sites-available apache2 file for the virtualhost server fixes the issue I have described above in my particular case.
Thanks again for the great plugin !
Mark
Forum: Plugins
In reply to: [Media Vault] Default protection for files uploaded as attachments to poststsHi Max,
I would love you to get in touch with me as your plugin is exactly what I need but it does not seem to be working for wp 4.3 using 2015 theme.
Everything appears to work, files are moved to the _mediavault directory and they seem to have protection correctly assigned, but anyone with the link can download them.
Thanks for your work on this and please reply if possible.
Mark