### EmbyServer PlaybackInfo API Responses Source: https://github.com/akimiojr/mediawarp/blob/main/docs/DEV.md JSON response examples for AlistStrm and standard video playback information from EmbyServer. ```json { "MediaSources": [ { "Protocol": "File", "Id": "37bcb3827aeb2095f1b6293e9a189072", "Path": "/资源盘/ANIOpen/2024-10/[ANi] 魔王陛下,RETRY!R - 04 [1080P][Baha][WEB-DL][AAC AVC][CHT].mp4", "Type": "Default", "Container": "strm", "Size": 0, "Name": "重来吧,魔王大人! S02E04 -1080p -AVC -AAC -ANi -Baha", "IsRemote": false, "HasMixedProtocols": false, "SupportsTranscoding": true, "SupportsDirectStream": false, "SupportsDirectPlay": false, "IsInfiniteStream": false, "RequiresOpening": false, "RequiresClosing": false, "RequiresLooping": false, "SupportsProbing": false, "MediaStreams": [], "Formats": [], "RequiredHttpHeaders": {}, "DirectStreamUrl": "/videos/61162/master.m3u8?DeviceId=e12ab84a-2948-463a-9cb0-ecebcac2949e&MediaSourceId=37bcb3827aeb2095f1b6293e9a189072&PlaySessionId=e643532a23ca4a60b2c70d4210c018a9&api_key=e824c422e02047dfa820dbcab5490bb9&VideoCodec=h264,h265,hevc,av1&VideoBitrate=1400000&TranscodingMaxAudioChannels=2&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&SubtitleStreamIndexes=-1&ManifestSubtitles=vtt&h264-profile=high,main,baseline,constrainedbaseline,high10&h264-level=62&hevc-codectag=hvc1,hev1,hevc,hdmv&TranscodeReasons=ContainerBitrateExceedsLimit", "AddApiKeyToDirectStreamUrl": false, "TranscodingUrl": "/videos/61162/master.m3u8?DeviceId=e12ab84a-2948-463a-9cb0-ecebcac2949e&MediaSourceId=37bcb3827aeb2095f1b6293e9a189072&PlaySessionId=e643532a23ca4a60b2c70d4210c018a9&api_key=e824c422e02047dfa820dbcab5490bb9&VideoCodec=h264,h265,hevc,av1&VideoBitrate=1400000&TranscodingMaxAudioChannels=2&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&SubtitleStreamIndexes=-1&ManifestSubtitles=vtt&h264-profile=high,main,baseline,constrainedbaseline,high10&h264-level=62&hevc-codectag=hvc1,hev1,hevc,hdmv&TranscodeReasons=ContainerBitrateExceedsLimit", "TranscodingSubProtocol": "hls", "TranscodingContainer": "ts", "ReadAtNativeFramerate": false, "ItemId": "61162" } ], "PlaySessionId": "e643532a23ca4a60b2c70d4210c018a9" } ``` ```json { "MediaSources": [ { "Protocol": "File", "Id": "56f692be38b2c4ae3c8f155e77006d46", "Path": "/media/媒体库/动漫追番/青之箱 (2024)/Season 1/青之箱 S01E04 -HEVC -AAC -KitaujiSub.mkv", "Type": "Default", "Container": "mkv", "Size": 470388402, "Name": "青之箱 S01E04 -HEVC -AAC -KitaujiSub", "IsRemote": false, "HasMixedProtocols": false, "RunTimeTicks": 14172790000, "SupportsTranscoding": true, "SupportsDirectStream": false, "SupportsDirectPlay": false, "IsInfiniteStream": false, "RequiresOpening": false, "RequiresClosing": false, "RequiresLooping": false, "SupportsProbing": false, "MediaStreams": [ { "Codec": "hevc", "ColorSpace": "bt709", "TimeBase": "1/1000", "VideoRange": "SDR", "DisplayTitle": "1080p HEVC", "IsInterlaced": false, "BitRate": 2655163, "BitDepth": 10, "RefFrames": 1, "IsDefault": true, "IsForced": false, "IsHearingImpaired": false, "Height": 1080, "Width": 1920, "AverageFrameRate": 23.976025 ``` -------------------------------- ### Build and Test Commands Source: https://github.com/akimiojr/mediawarp/blob/main/docs/DEV.md Commands for building snapshots and running flow tests using Goreleaser. ```BASH goreleaser release --snapshot --clean --skip-publish ``` ```BASH goreleaser release --snapshot --clean --skip-publish --rm-dist ``` -------------------------------- ### Project Directory Structure Source: https://github.com/akimiojr/mediawarp/blob/main/docs/DEV.md Overview of the MediaWarp project file organization. ```text MEDIAWARP ├─.github │ └─workflows # 工作流相关 ├─api # Alist、EmbyServer等服务器的开放接口 ├─config # MediaWarp配置文件 ├─constants # 存放一些常量 ├─core # MediaWarp核心组织,包括配置读取、日志等 ├─docs # MediaWarp相关文档 ├─handlers # MediaWarp请求处理函数 │ └─handlers_emby # 处理服务器为EmbySever的一些函数 ├─img # MediaWarp演示图片 ├─logs # MediaWarp输出日志 ├─middleware # Gin框架用到的中间件,包括访问日志、客户端过滤 ├─utils # 一些工具集合 ├─resources # 内嵌的一些JavaScript脚本、CSS样式 │ ├─css │ └─js ├─router # MediaWarp的API路由部分 ├─schemas # API响应结构体 │ ├─schemas_alist │ └─schemas_emby └─static # MediaWarp自定义静态文件存储目录 ``` -------------------------------- ### EmbyServer playbackInfo Source: https://github.com/akimiojr/mediawarp/blob/main/docs/DEV.md Describes the structure of the playbackInfo response for EmbyServer, including media source details for both AlistStrm and standard video files. ```APIDOC ## EmbyServer playbackInfo ### Description Returns the media source information for a requested item, including transcoding URLs and stream protocols. ### Response #### Success Response (200) - **MediaSources** (array) - List of available media sources for the item. - **PlaySessionId** (string) - Unique identifier for the current playback session. #### Response Example { "MediaSources": [ { "Protocol": "File", "Id": "37bcb3827aeb2095f1b6293e9a189072", "Path": "/资源盘/ANIOpen/2024-10/[ANi] 魔王陛下,RETRY!R - 04 [1080P][Baha][WEB-DL][AAC AVC][CHT].mp4", "Type": "Default", "Container": "strm", "Size": 0, "Name": "重来吧,魔王大人! S02E04 -1080p -AVC -AAC -ANi -Baha", "IsRemote": false, "SupportsTranscoding": true, "DirectStreamUrl": "/videos/61162/master.m3u8?...", "TranscodingUrl": "/videos/61162/master.m3u8?...", "TranscodingSubProtocol": "hls", "TranscodingContainer": "ts", "ItemId": "61162" } ], "PlaySessionId": "e643532a23ca4a60b2c70d4210c018a9" } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.