Closed frikiluser closed 1 year ago
Working dirty hack:
diff --git a/src/js/tech/ChromecastTech.js b/src/js/tech/ChromecastTech.js
index cef12a7..a7375d0 100644
--- a/src/js/tech/ChromecastTech.js
+++ b/src/js/tech/ChromecastTech.js
@@ -172,6 +172,10 @@ ChromecastTech = {
mediaInfo.customData = customData;
}
+ // FIXME: Dirty hack for demo purposes only!
+ mediaInfo.hlsSegmentFormat = chrome.cast.media.HlsSegmentFormat.FMP4;
+ mediaInfo.hlsVideoSegmentFormat = chrome.cast.media.HlsVideoSegmentFormat.FMP4;
+
this._ui.updateTitle(title);
this._ui.updateSubtitle(subtitle);
Of course it can't be done that way. It's just a working demo.
Hope it helps and can be merged someway soon.
Hi! This will be solved by https://github.com/silvermine/videojs-chromecast/pull/118. Then you can use the following videojs options:
{
chromecast: {
modifyLoadRequestFn: function (loadRequest) {
loadRequest.media.hlsSegmentFormat = 'fmp4';
loadRequest.media.hlsVideoSegmentFormat = 'fmp4';
return loadRequest;
}
},
}
While DAHS-fMP4 videos can be shared using this plugin HLS-fMP4 can't.
Google Documentation:
Example URL:
Working HTML-based player:
Thanks for your great work!!