[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-07-25 UTC。"],[[["\u003cp\u003e\u003ccode\u003ePlaybackConfig\u003c/code\u003e is a class for customizing playback behavior in the Cast framework.\u003c/p\u003e\n"],["\u003cp\u003eIt provides properties to control buffering, license acquisition, manifest handling, and protection systems.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use handlers to modify network requests for captions, licenses, manifests, and segments.\u003c/p\u003e\n"],["\u003cp\u003eShaka Player specific configurations can be applied through the \u003ccode\u003eshakaConfig\u003c/code\u003e property.\u003c/p\u003e\n"],["\u003cp\u003ePlayback settings like \u003ccode\u003eautoPauseDuration\u003c/code\u003e, \u003ccode\u003einitialBandwidth\u003c/code\u003e, and \u003ccode\u003eprotectionSystem\u003c/code\u003e can be configured using \u003ccode\u003ePlaybackConfig\u003c/code\u003e.\u003c/p\u003e\n"]]],["The `PlaybackConfig` class customizes playback behavior, offering properties to manage buffering, captions, and manifest handling. Key actions include setting `autoPauseDuration` and `autoResumeDuration` for buffering control, and defining `captionsRequestHandler`, `licenseHandler`, `manifestHandler`, and `segmentHandler` to modify data. `licenseUrl`, and `protectionSystem` configure content decryption. Request handlers, such as `licenseRequestHandler`, `manifestRequestHandler`, and `segmentRequestHandler`, allow for customizing network requests. `shakaConfig` enables merging with Shaka Player settings. Other key properties are enableSmoothLiveRefresh, enableUITextDisplayer and ignoreTtmlPositionInfo.\n"],null,["cast.[framework](/cast/docs/reference/web_receiver/cast.framework).PlaybackConfig \nclass static\n\nConfiguration to customize playback behavior.\n\nConstructor\n\nPlaybackConfig\n\nnew\nPlaybackConfig()\n\nProperties\n\nautoPauseDuration\n\n(number or undefined)\n\nDuration of buffered media in seconds to start buffering. Not supported\nby Shaka Player.\n\nautoResumeDuration\n\n(number or undefined)\n\nDuration of buffered media in seconds to start/resume playback after\nauto-paused due to buffering.\n\nautoResumeNumberOfSegments\n\n(number or undefined)\n\nMinimum number of buffered segments to start/resume playback. For DASH\ncontent use autoResumeDuration instead.\n\ncaptionsRequestHandler\n\n(function(non-null [cast.framework.NetworkRequestInfo](/cast/docs/reference/web_receiver/cast.framework.NetworkRequestInfo)) or undefined)\n\nA function to customize request to get a caption segment. Not supported\nby Shaka Player.\n\nenableSmoothLiveRefresh\n\nboolean\n\nA flag to enable manifest refresh logic for Smooth Live streaming.\n\nenableUITextDisplayer\n\nboolean\n\nA flag to enable Shaka Player's DOM-based text renderer,\n[shaka.text.UITextDisplayer](https://shaka-player-demo.appspot.com/docs/api/shaka.text.UITextDisplayer.html).\nThe videoContainer used to construct the UITextDisplayer defaults to the\nparent of the Cast video element. Use of this text displayer may incur\nsynchronization issues between the text track and audio/video track(s),\nespecially on older generation Cast devices. The videoContainer may not\nbe properly aligned relative to the screen size, should custom UI be used\nin the receiver application.\n\nignoreTtmlPositionInfo\n\nboolean\n\nA flag whether to ignore TTML positioning information.\n\ninitialBandwidth\n\n(number or undefined)\n\nInitial bandwidth in bits in per second.\n\nlicenseCustomData\n\n(string or undefined)\n\nCustom license data. Not supported by Shaka Player.\n\nlicenseHandler\n\n(function(non-null Uint8Array, non-null [cast.framework.NetworkResponseInfo](/cast/docs/reference/web_receiver/cast.framework.NetworkResponseInfo)) returns (non-null Promise containing non-null Uint8Array or non-null Uint8Array) or undefined)\n\nHandler to process license data. The handler is passed the license data,\nand returns the modified license data.\n\nlicenseRequestHandler\n\n(function(non-null [cast.framework.NetworkRequestInfo](/cast/docs/reference/web_receiver/cast.framework.NetworkRequestInfo)) or undefined)\n\nA function to customize an outgoing request to get a license. The handler\nis passed network request information to be modified. The SDK processes\nthe modified network request information to initiate the license request.\nAsynchronous handlers are only supported on Shaka Player.\n\nlicenseUrl\n\n(string or undefined)\n\nUrl for acquiring the license.\n\nmanifestHandler\n\n(function(string, non-null [cast.framework.NetworkResponseInfo](/cast/docs/reference/web_receiver/cast.framework.NetworkResponseInfo)) returns (non-null Promise containing string or string) or undefined)\n\nHandler to process manifest data. The handler is passed the manifest, and\nreturns the modified manifest.\n\nmanifestRequestHandler\n\n(function(non-null [cast.framework.NetworkRequestInfo](/cast/docs/reference/web_receiver/cast.framework.NetworkRequestInfo)) or undefined)\n\nA function to customize request to get a manifest. The handler\nis passed network request information to be modified. The SDK processes\nthe modified network request information to initiate the manifest\nrequest. Asynchronous handlers are only supported on Shaka Player.\n\nprotectionSystem\n\n[cast.framework.ContentProtection](/cast/docs/reference/web_receiver/cast.framework#.ContentProtection)\n\nPreferred protection system to use for decrypting content.\n\nsegmentHandler\n\n(function(non-null Uint8Array, non-null [cast.framework.NetworkResponseInfo](/cast/docs/reference/web_receiver/cast.framework.NetworkResponseInfo)) returns (non-null Promise containing non-null Uint8Array or non-null Uint8Array) or undefined)\n\nHandler to process segment data. The handler is passed the segment data,\nand returns the modified segment data.\n\nsegmentRequestHandler\n\n(function(non-null [cast.framework.NetworkRequestInfo](/cast/docs/reference/web_receiver/cast.framework.NetworkRequestInfo)) or undefined)\n\nA function to customize request information to get a media segment. The\nhandler is passed network request information to be modified. The SDK\nprocesses the modified network request information to initiate the\nsegment request. Asynchronous handlers are only supported on Shaka\nPlayer.\n\nsegmentRequestRetryLimit\n\n(number or undefined)\n\nMaximum number of times to retry a network request for a segment.\nDefaults to 3.\n\nshakaConfig\n\n(non-null Object or undefined)\n\nThis object is merged with CAF's default Shaka configurations (with\noptions set in this object taking precedence). Developers should use\ncaution when applying values to the Shaka configuration as it could\nresult in playback issues.\nFor allowed options in this object, see\n[shaka.util.PlayerConfiguration](https://shaka-player-demo.appspot.com/docs/api/shaka.extern.html#.PlayerConfiguration)\nfor more information."]]