I have an issue with azure-laravel streaming videos (video is slow and unable to seek). Saw a question in SO that this could be the x-ms-version causing it: here . I coulnd't find a way to fix to problem as described here:here .
I need to edit/specify my x-ms-version header. Where can I find the property x-ms-version in order to change it?
I found the file: vendor\microsoft\azure-storage\src\Common\Internal\Resources.php but I don't have a property called: STORAGE_API_LATEST_VERSION
UPDATE Image:
Any ideas, someone?
my media upload controller: (it works, I can upload the files)
public function mediaUpload(Request $request)
{
$fileName = time() . '_' . $request->file->getClientOriginalName();
$url = $request->file('file')->storeAs($request->folder, $fileName, 'azure');
if ($url) {
$json = array(
'uploaded' => true,
'fileName' => basename($url),
'fileNameFolder' => $url,
'location' => $url,
);
return response()->json($json);
}
}
My view file where I display the video:
<div class="flex flex-wrap sm:w-7/12 mx-auto mt-10 relative z-10">
<video id="player" playsinline controls :data-poster="$page.assetsUrl + video.thumbnail_path">
<source :src="$page.assetsUrl + video.video_path" type="video/mp4" />
</video>
</div>
My BlobResources.php:
const BLOB_SDK_VERSION = '1.5.2';
const STORAGE_API_LATEST_VERSION = '2017-11-09';
HERE is a link to problematic video coming from azure blob storage: