Jump to content

the bugs of session


Go to solution Solved by quickmic,

Recommended Posts

clost
Posted

[{
    "PlayState": {
        "PositionTicks": 10460000000,
        "CanSeek": true,
        "IsPaused": false,
        "IsMuted": false,
        "MediaSourceId": "82f3cf28f863e84a574ec3c95371e73b",
        "PlayMethod": "DirectStream",
        "RepeatMode": "RepeatNone",
        "SubtitleOffset": 0,
        "Shuffle": false,
        "PlaybackRate": 1
    },
    "AdditionalUsers": [],
    "RemoteEndPoint": "2a09:bac2:37ab:26a0::3e9:19",
    "Protocol": "HTTP/1.0",
    "PlayableMediaTypes": [],
    "PlaylistIndex": 0,
    "PlaylistLength": 1,
    "Id": "62b11753ec73150e1924e0859ab9d9f0",
    "ServerId": "690e11058c7b445cbs6145726acdf6cc",
    "UserId": "1be23ea12ac9421a8f47720e0848fc80",
    "UserName": "hello",
    "Client": "Emby",
    "LastActivityDate": "2025-03-13T21:30:54.9955072Z",
    "DeviceName": "iPad",
    "NowPlayingItem": {
        "Name": "TBA",
        "ServerId": "690e11058c7b445cdf6145726acdf6cc",
        "Id": "137322",
        "DateCreated": "2025-03-13T12:09:37.0000000Z",
        "PresentationUniqueKey": "461936-zh-CN-f7b8da952d1c4c9fb8a82d7d440d11a1-001 - 0023",
        "Container": "mp4",
        "PremiereDate": "2025-03-12T16:00:00.0000000Z",
        "Path": "/home/link/tvseries/something/Season 1/something - S01E23 - 2160p WEB-DL H265.mp4",
        "Taglines": [],
        "Genres": [],
        "RunTimeTicks": 27259600000,
        "Size": 2090357596,
        "FileName": "something - S01E23 - 2160p WEB-DL H265.mp4",
        "Bitrate": 6134668,
        "ProductionYear": 2025,
        "IndexNumber": 23,
        "ParentIndexNumber": 1,
        "IsFolder": false,
        "ParentId": "133741",
        "Type": "Episode",
        "MediaStreams": [{
            "Codec": "hevc",
            "CodecTag": "hev1",
            "Language": "und",
            "ColorTransfer": "smpte2084",
            "ColorPrimaries": "bt2020",
            "ColorSpace": "bt2020nc",
            "TimeBase": "1/90000",
            "VideoRange": "HDR 10",
            "DisplayTitle": "1080p HDR 10 HEVC",
            "IsInterlaced": false,
            "BitRate": 6000896,
            "BitDepth": 10,
            "RefFrames": 1,
            "IsDefault": true,
            "IsForced": false,
            "IsHearingImpaired": false,
            "Height": 1080,
            "Width": 1920,
            "AverageFrameRate": 25,
            "RealFrameRate": 25,
            "Profile": "Main 10",
            "Type": "Video",
            "AspectRatio": "16:9",
            "Index": 0,
            "IsExternal": false,
            "IsTextSubtitleStream": false,
            "SupportsExternalStream": false,
            "Protocol": "File",
            "PixelFormat": "yuv420p10le",
            "Level": 153,
            "IsAnamorphic": false,
            "ExtendedVideoType": "Hdr10",
            "ExtendedVideoSubType": "Hdr10",
            "ExtendedVideoSubTypeDescription": "HDR 10",
            "AttachmentSize": 0
        }, {
            "Codec": "aac",
            "CodecTag": "mp4a",
            "Language": "und",
            "TimeBase": "1/44100",
            "DisplayTitle": "AAC stereo (Default)",
            "IsInterlaced": false,
            "ChannelLayout": "stereo",
            "BitRate": 128352,
            "Channels": 2,
            "SampleRate": 44100,
            "IsDefault": true,
            "IsForced": false,
            "IsHearingImpaired": false,
            "Profile": "LC",
            "Type": "Audio",
            "Index": 1,
            "IsExternal": false,
            "IsTextSubtitleStream": false,
            "SupportsExternalStream": false,
            "Protocol": "File",
            "ExtendedVideoType": "None",
            "ExtendedVideoSubType": "None",
            "ExtendedVideoSubTypeDescription": "None",
            "AttachmentSize": 0
        }],


I deleted something useless, from red font, we can see, the path of File is wrong, actually I have two versions of this episode, one is 1080p the other is 4K, but when I playing 1080p. the path displayed 2160p but display is right.


API should be this, /emby/Sessions?IncludeAllSessionsIfAdmin=true&IsPlaying=true

I checked from dashboard

Posted

Hi, what version of the server?

clost
Posted
1 hour ago, Luke said:

Hi, what version of the server?

I tried 3 versions, 4.8.11, 4.8.10, 4.8.9, All same results

Posted

OK I do vaguely recall this coming up. I'll have to check but it might be resolved in the 4.9 beta channel.

@quickmicwas it you?

  • Solution
quickmic
Posted (edited)

No, it wasn't me. Anyway, I ran a quick check on current beta with multiversion movie content and seems to be fine.

[
  {
    "PlayState": {
      "PositionTicks": 10900000,
      "CanSeek": true,
      "IsPaused": true,
      "IsMuted": false,
      "VolumeLevel": 100,
      "MediaSourceId": "mediasource_5247378",
      "PlayMethod": "DirectPlay",
      "RepeatMode": "RepeatNone",
      "SubtitleOffset": 0,
      "Shuffle": false,
      "PlaybackRate": 1
    },
    "AdditionalUsers": [],
    "RemoteEndPoint": "192.168.0.50",
    "Protocol": "HTTP/1.1",
    "PlayableMediaTypes": [
      "Audio",
      "Video",
      "Photo"
    ],
    "PlaylistIndex": 0,
    "PlaylistLength": 1,
    "Id": "f8236783c94b740d3b51349cc697f2eb",
    "ServerId": "2a38697ffc1b428b943aa1b6014e2263",
    "UserId": "e1f4f9fe335c47ae8524d0d7de19e9ab",
    "UserName": "quickmic",
    "UserPrimaryImageTag": "89c4df4ca2031f22cf41307d40526ee4",
    "Client": "Emby for Kodi Next Gen",
    "LastActivityDate": "2025-03-14T07:55:52.9350414Z",
    "DeviceName": "Kodi-Laptop",
    "NowPlayingItem": {
      "Name": "The Sum of All Fears",
      "OriginalTitle": "The Sum of All Fears",
      "ServerId": "2a38697ffc1b428b943aa1b6014e2263",
      "Id": "5247361",
      "DateCreated": "2025-03-02T07:46:22.0000000Z",
      "PresentationUniqueKey": "6ddca25ce0ba9f5b5409c96a3afa2e45",
      "Container": "mkv",
      "PremiereDate": "2002-05-30T22:00:00.0000000Z",
      "ExternalUrls": [
        {
          "Name": "IMDb",
          "Url": "https://www.imdb.com/title/tt0164184"
        },
        {
          "Name": "MovieDb",
          "Url": "https://www.themoviedb.org/movie/4614"
        },
        {
          "Name": "TheTVDB",
          "Url": "https://thetvdb.com/dereferrer/movie/2174"
        },
        {
          "Name": "Trakt",
          "Url": "https://trakt.tv/search/tmdb/4614?id_type=movie"
        }
      ],
      "CriticRating": 59,
      "Path": "/mnt/storage0/multimedia/movies/S/The Sum of All Fears (2002)/The Sum of All Fears (2002) - Bluray 4k.mkv",
      "OfficialRating": "PG-13",
      "Overview": "When the president of Russia suddenly dies, a man whose politics are virtually unknown succeeds him. The change in political leaders sparks paranoia among American CIA officials, so CIA director Bill Cabot recruits a young analyst to supply insight and advice on the situation. Then the unthinkable happens: a nuclear bomb explodes in a U.S. city, and America is quick to blame the Russians.",
      "Taglines": [
        "27,000 nuclear weapons. One is missing."
      ],
      "Genres": [
        "Thriller",
        "Action",
        "Drama"
      ],
      "CommunityRating": 6.5,
      "RunTimeTicks": 71141830000,
      "Size": 724132933,
      "FileName": "The Sum of All Fears (2002) - Bluray 4k.mkv",
      "Bitrate": 814297,
      "ProductionYear": 2002,
      "ProviderIds": {
        "Tmdb": "4614",
        "Imdb": "tt0164184",
        "Tvdb": "2174",
        "Official Website": "http://www.paramount.com/movies/sum-all-fears"
      },
      "IsFolder": false,
      "ParentId": "5247360",
      "Type": "Movie",
      "Studios": [
        {
          "Name": "Paramount Pictures",
          "Id": 74776
        },
        {
          "Name": "Mace Neufeld Productions",
          "Id": 99741
        }
      ],
      "GenreItems": [
        {
          "Name": "Thriller",
          "Id": 15045
        },
        {
          "Name": "Action",
          "Id": 18631
        },
        {
          "Name": "Drama",
          "Id": 17535
        }
      ],
      "PrimaryImageAspectRatio": 0.7222222222222222,
      "MediaStreams": [
        {
          "Codec": "aac",
          "TimeBase": "1/1000",
          "DisplayTitle": "AAC stereo (Default)",
          "IsInterlaced": false,
          "ChannelLayout": "stereo",
          "BitRate": 192000,
          "Channels": 2,
          "SampleRate": 44100,
          "IsDefault": true,
          "IsForced": false,
          "IsHearingImpaired": false,
          "Profile": "LC",
          "Type": "Audio",
          "Index": 0,
          "IsExternal": false,
          "IsTextSubtitleStream": false,
          "SupportsExternalStream": false,
          "Protocol": "File",
          "ExtendedVideoType": "None",
          "ExtendedVideoSubType": "None",
          "ExtendedVideoSubTypeDescription": "None",
          "AttachmentSize": 0
        },
        {
          "Codec": "hevc",
          "TimeBase": "1/1000",
          "VideoRange": "SDR",
          "DisplayTitle": "576p HEVC",
          "IsInterlaced": false,
          "BitRate": 814297,
          "BitDepth": 8,
          "RefFrames": 1,
          "IsDefault": true,
          "IsForced": false,
          "IsHearingImpaired": false,
          "Height": 576,
          "Width": 480,
          "AverageFrameRate": 25,
          "RealFrameRate": 25,
          "Profile": "Main",
          "Type": "Video",
          "AspectRatio": "4:3",
          "Index": 1,
          "IsExternal": false,
          "IsTextSubtitleStream": false,
          "SupportsExternalStream": false,
          "Protocol": "File",
          "PixelFormat": "yuv420p",
          "Level": 90,
          "IsAnamorphic": true,
          "ExtendedVideoType": "None",
          "ExtendedVideoSubType": "None",
          "ExtendedVideoSubTypeDescription": "None",
          "AttachmentSize": 0
        }
      ],
      "ImageTags": {
        "Primary": "ef0069513865e83e31613d4070e99e82",
        "Logo": "53c278ba9b98af2bd29f6aed928bae4f",
        "Art": "a6984911d920c436545a7c359d913bf8",
        "Banner": "0853587cd70fd7f199d94f30acb73d5c",
        "Disc": "9754298fa95a226566988fe624f82435",
        "Thumb": "aeec8ba0b131681828aae7c2d40f8a43"
      },
      "BackdropImageTags": [
        "b9c86938bee803de40cbb9de0fdb50ec",
        "2495017dd0340199113c4a1b661b5a3c",
        "22ed1180d951a3f017ede7284257b385",
        "23c9a15996ff70d38993a080abd86995",
        "a8372684c12bd3fff236107f4f9d2bc8",
        "f87591c20f03bfb97e2de4d0e6a85d53",
        "d5abd86de001c11079ef9f554938e35f",
        "d4095ee5dcc436900edcb8585bcf35bf",
        "07cae69a7a91ab6953a321122a71a258",
        "051ac91dccb4db3c66bbc460757c1179"
      ],
      "Chapters": [
        {
          "StartPositionTicks": 0,
          "Name": "Chapter 01",
          "ImageTag": "24d0693491b35d20b2261f85b74b1ad3",
          "MarkerType": "Chapter",
          "ChapterIndex": 0
        },
        {
          "StartPositionTicks": 2919170000,
          "Name": "Chapter 02",
          "ImageTag": "24d0693491b35d20b2261f85b74b1ad3",
          "MarkerType": "Chapter",
          "ChapterIndex": 1
        },
        {
          "StartPositionTicks": 7812800000,
          "Name": "Chapter 03",
          "ImageTag": "24d0693491b35d20b2261f85b74b1ad3",
          "MarkerType": "Chapter",
          "ChapterIndex": 2
        },
        {
          "StartPositionTicks": 14475290000,
          "Name": "Chapter 04",
          "ImageTag": "24d0693491b35d20b2261f85b74b1ad3",
          "MarkerType": "Chapter",
          "ChapterIndex": 3
        },
        {
          "StartPositionTicks": 18068880000,
          "Name": "Chapter 05",
          "ImageTag": "24d0693491b35d20b2261f85b74b1ad3",
          "MarkerType": "Chapter",
          "ChapterIndex": 4
        },
        {
          "StartPositionTicks": 21936500000,
          "Name": "Chapter 06",
          "ImageTag": "24d0693491b35d20b2261f85b74b1ad3",
          "MarkerType": "Chapter",
          "ChapterIndex": 5
        },
        {
          "StartPositionTicks": 28879680000,
          "Name": "Chapter 07",
          "ImageTag": "24d0693491b35d20b2261f85b74b1ad3",
          "MarkerType": "Chapter",
          "ChapterIndex": 6
        },
        {
          "StartPositionTicks": 37103320000,
          "Name": "Chapter 08",
          "ImageTag": "24d0693491b35d20b2261f85b74b1ad3",
          "MarkerType": "Chapter",
          "ChapterIndex": 7
        },
        {
          "StartPositionTicks": 39811440000,
          "Name": "Chapter 09",
          "ImageTag": "24d0693491b35d20b2261f85b74b1ad3",
          "MarkerType": "Chapter",
          "ChapterIndex": 8
        },
        {
          "StartPositionTicks": 43980190000,
          "Name": "Chapter 10",
          "ImageTag": "24d0693491b35d20b2261f85b74b1ad3",
          "MarkerType": "Chapter",
          "ChapterIndex": 9
        },
        {
          "StartPositionTicks": 48135590000,
          "Name": "Chapter 11",
          "ImageTag": "24d0693491b35d20b2261f85b74b1ad3",
          "MarkerType": "Chapter",
          "ChapterIndex": 10
        },
        {
          "StartPositionTicks": 51664950000,
          "Name": "Chapter 12",
          "ImageTag": "24d0693491b35d20b2261f85b74b1ad3",
          "MarkerType": "Chapter",
          "ChapterIndex": 11
        },
        {
          "StartPositionTicks": 56340870000,
          "Name": "Chapter 13",
          "ImageTag": "24d0693491b35d20b2261f85b74b1ad3",
          "MarkerType": "Chapter",
          "ChapterIndex": 12
        },
        {
          "StartPositionTicks": 61234090000,
          "Name": "Chapter 14",
          "ImageTag": "24d0693491b35d20b2261f85b74b1ad3",
          "MarkerType": "Chapter",
          "ChapterIndex": 13
        },
        {
          "StartPositionTicks": 64440210000,
          "Name": "Chapter 15",
          "ImageTag": "24d0693491b35d20b2261f85b74b1ad3",
          "MarkerType": "Chapter",
          "ChapterIndex": 14
        },
        {
          "StartPositionTicks": 67006520000,
          "Name": "Chapter 16",
          "ImageTag": "24d0693491b35d20b2261f85b74b1ad3",
          "MarkerType": "Chapter",
          "ChapterIndex": 15
        },
        {
          "StartPositionTicks": 70385730000,
          "Name": "Chapter 17",
          "ImageTag": "24d0693491b35d20b2261f85b74b1ad3",
          "MarkerType": "Chapter",
          "ChapterIndex": 16
        }
      ],
      "MediaType": "Video",
      "Width": 3840,
      "Height": 2160
    },
    "InternalDeviceId": 2504,
    "DeviceId": "13cdca18-8649-4eea-90e4-84117223be83",
    "ApplicationVersion": "11.2.0",
    "AppIconUrl": "https://raw.githubusercontent.com/MediaBrowser/plugin.video.emby/master/kodi_icon.png",
    "SupportedCommands": [
      "MoveUp",
      "MoveDown",
      "MoveLeft",
      "MoveRight",
      "Select",
      "Back",
      "ToggleContextMenu",
      "ToggleFullscreen",
      "ToggleOsdMenu",
      "GoHome",
      "PageUp",
      "NextLetter",
      "GoToSearch",
      "GoToSettings",
      "PageDown",
      "PreviousLetter",
      "TakeScreenshot",
      "VolumeUp",
      "VolumeDown",
      "ToggleMute",
      "SendString",
      "DisplayMessage",
      "SetAudioStreamIndex",
      "SetSubtitleStreamIndex",
      "SetRepeatMode",
      "SetShuffle",
      "PlaybackRate",
      "Mute",
      "Unmute",
      "SetVolume",
      "MovePlaylistItem",
      "RemoveFromPlaylist",
      "SetCurrentPlaylistItem",
      "ToggleStats",
      "PlayTrailers",
      "Pause",
      "Unpause",
      "Play",
      "Playstate",
      "PlayNext",
      "PlayMediaSource",
      "ChannelDown",
      "ChannelUp",
      "DisplayContent"
    ],
    "SupportsRemoteControl": true
  }
]

 

Path reflects the "main" item...

"Path": "/mnt/storage0/multimedia/movies/S/The Sum of All Fears (2002)/The Sum of All Fears (2002) - Bluray 4k.mkv"

DisplayTitle reflect the "subversion" I played...

"DisplayTitle": "576p HEVC"

...and that's how's suppose to be.

Edited by quickmic
  • Thanks 1
clost
Posted
7 hours ago, quickmic said:

No, it wasn't me. Anyway, I ran a quick check on current beta with multiversion movie content and seems to be fine.

[
  {
    "PlayState": {
      "PositionTicks": 10900000,
      "CanSeek": true,
      "IsPaused": true,
      "IsMuted": false,
      "VolumeLevel": 100,
      "MediaSourceId": "mediasource_5247378",
      "PlayMethod": "DirectPlay",
      "RepeatMode": "RepeatNone",
      "SubtitleOffset": 0,
      "Shuffle": false,
      "PlaybackRate": 1
    },
    "AdditionalUsers": [],
    "RemoteEndPoint": "192.168.0.50",
    "Protocol": "HTTP/1.1",
    "PlayableMediaTypes": [
      "Audio",
      "Video",
      "Photo"
    ],
    "PlaylistIndex": 0,
    "PlaylistLength": 1,
    "Id": "f8236783c94b740d3b51349cc697f2eb",
    "ServerId": "2a38697ffc1b428b943aa1b6014e2263",
    "UserId": "e1f4f9fe335c47ae8524d0d7de19e9ab",
    "UserName": "quickmic",
    "UserPrimaryImageTag": "89c4df4ca2031f22cf41307d40526ee4",
    "Client": "Emby for Kodi Next Gen",
    "LastActivityDate": "2025-03-14T07:55:52.9350414Z",
    "DeviceName": "Kodi-Laptop",
    "NowPlayingItem": {
      "Name": "The Sum of All Fears",
      "OriginalTitle": "The Sum of All Fears",
      "ServerId": "2a38697ffc1b428b943aa1b6014e2263",
      "Id": "5247361",
      "DateCreated": "2025-03-02T07:46:22.0000000Z",
      "PresentationUniqueKey": "6ddca25ce0ba9f5b5409c96a3afa2e45",
      "Container": "mkv",
      "PremiereDate": "2002-05-30T22:00:00.0000000Z",
      "ExternalUrls": [
        {
          "Name": "IMDb",
          "Url": "https://www.imdb.com/title/tt0164184"
        },
        {
          "Name": "MovieDb",
          "Url": "https://www.themoviedb.org/movie/4614"
        },
        {
          "Name": "TheTVDB",
          "Url": "https://thetvdb.com/dereferrer/movie/2174"
        },
        {
          "Name": "Trakt",
          "Url": "https://trakt.tv/search/tmdb/4614?id_type=movie"
        }
      ],
      "CriticRating": 59,
      "Path": "/mnt/storage0/multimedia/movies/S/The Sum of All Fears (2002)/The Sum of All Fears (2002) - Bluray 4k.mkv",
      "OfficialRating": "PG-13",
      "Overview": "When the president of Russia suddenly dies, a man whose politics are virtually unknown succeeds him. The change in political leaders sparks paranoia among American CIA officials, so CIA director Bill Cabot recruits a young analyst to supply insight and advice on the situation. Then the unthinkable happens: a nuclear bomb explodes in a U.S. city, and America is quick to blame the Russians.",
      "Taglines": [
        "27,000 nuclear weapons. One is missing."
      ],
      "Genres": [
        "Thriller",
        "Action",
        "Drama"
      ],
      "CommunityRating": 6.5,
      "RunTimeTicks": 71141830000,
      "Size": 724132933,
      "FileName": "The Sum of All Fears (2002) - Bluray 4k.mkv",
      "Bitrate": 814297,
      "ProductionYear": 2002,
      "ProviderIds": {
        "Tmdb": "4614",
        "Imdb": "tt0164184",
        "Tvdb": "2174",
        "Official Website": "http://www.paramount.com/movies/sum-all-fears"
      },
      "IsFolder": false,
      "ParentId": "5247360",
      "Type": "Movie",
      "Studios": [
        {
          "Name": "Paramount Pictures",
          "Id": 74776
        },
        {
          "Name": "Mace Neufeld Productions",
          "Id": 99741
        }
      ],
      "GenreItems": [
        {
          "Name": "Thriller",
          "Id": 15045
        },
        {
          "Name": "Action",
          "Id": 18631
        },
        {
          "Name": "Drama",
          "Id": 17535
        }
      ],
      "PrimaryImageAspectRatio": 0.7222222222222222,
      "MediaStreams": [
        {
          "Codec": "aac",
          "TimeBase": "1/1000",
          "DisplayTitle": "AAC stereo (Default)",
          "IsInterlaced": false,
          "ChannelLayout": "stereo",
          "BitRate": 192000,
          "Channels": 2,
          "SampleRate": 44100,
          "IsDefault": true,
          "IsForced": false,
          "IsHearingImpaired": false,
          "Profile": "LC",
          "Type": "Audio",
          "Index": 0,
          "IsExternal": false,
          "IsTextSubtitleStream": false,
          "SupportsExternalStream": false,
          "Protocol": "File",
          "ExtendedVideoType": "None",
          "ExtendedVideoSubType": "None",
          "ExtendedVideoSubTypeDescription": "None",
          "AttachmentSize": 0
        },
        {
          "Codec": "hevc",
          "TimeBase": "1/1000",
          "VideoRange": "SDR",
          "DisplayTitle": "576p HEVC",
          "IsInterlaced": false,
          "BitRate": 814297,
          "BitDepth": 8,
          "RefFrames": 1,
          "IsDefault": true,
          "IsForced": false,
          "IsHearingImpaired": false,
          "Height": 576,
          "Width": 480,
          "AverageFrameRate": 25,
          "RealFrameRate": 25,
          "Profile": "Main",
          "Type": "Video",
          "AspectRatio": "4:3",
          "Index": 1,
          "IsExternal": false,
          "IsTextSubtitleStream": false,
          "SupportsExternalStream": false,
          "Protocol": "File",
          "PixelFormat": "yuv420p",
          "Level": 90,
          "IsAnamorphic": true,
          "ExtendedVideoType": "None",
          "ExtendedVideoSubType": "None",
          "ExtendedVideoSubTypeDescription": "None",
          "AttachmentSize": 0
        }
      ],
      "ImageTags": {
        "Primary": "ef0069513865e83e31613d4070e99e82",
        "Logo": "53c278ba9b98af2bd29f6aed928bae4f",
        "Art": "a6984911d920c436545a7c359d913bf8",
        "Banner": "0853587cd70fd7f199d94f30acb73d5c",
        "Disc": "9754298fa95a226566988fe624f82435",
        "Thumb": "aeec8ba0b131681828aae7c2d40f8a43"
      },
      "BackdropImageTags": [
        "b9c86938bee803de40cbb9de0fdb50ec",
        "2495017dd0340199113c4a1b661b5a3c",
        "22ed1180d951a3f017ede7284257b385",
        "23c9a15996ff70d38993a080abd86995",
        "a8372684c12bd3fff236107f4f9d2bc8",
        "f87591c20f03bfb97e2de4d0e6a85d53",
        "d5abd86de001c11079ef9f554938e35f",
        "d4095ee5dcc436900edcb8585bcf35bf",
        "07cae69a7a91ab6953a321122a71a258",
        "051ac91dccb4db3c66bbc460757c1179"
      ],
      "Chapters": [
        {
          "StartPositionTicks": 0,
          "Name": "Chapter 01",
          "ImageTag": "24d0693491b35d20b2261f85b74b1ad3",
          "MarkerType": "Chapter",
          "ChapterIndex": 0
        },
        {
          "StartPositionTicks": 2919170000,
          "Name": "Chapter 02",
          "ImageTag": "24d0693491b35d20b2261f85b74b1ad3",
          "MarkerType": "Chapter",
          "ChapterIndex": 1
        },
        {
          "StartPositionTicks": 7812800000,
          "Name": "Chapter 03",
          "ImageTag": "24d0693491b35d20b2261f85b74b1ad3",
          "MarkerType": "Chapter",
          "ChapterIndex": 2
        },
        {
          "StartPositionTicks": 14475290000,
          "Name": "Chapter 04",
          "ImageTag": "24d0693491b35d20b2261f85b74b1ad3",
          "MarkerType": "Chapter",
          "ChapterIndex": 3
        },
        {
          "StartPositionTicks": 18068880000,
          "Name": "Chapter 05",
          "ImageTag": "24d0693491b35d20b2261f85b74b1ad3",
          "MarkerType": "Chapter",
          "ChapterIndex": 4
        },
        {
          "StartPositionTicks": 21936500000,
          "Name": "Chapter 06",
          "ImageTag": "24d0693491b35d20b2261f85b74b1ad3",
          "MarkerType": "Chapter",
          "ChapterIndex": 5
        },
        {
          "StartPositionTicks": 28879680000,
          "Name": "Chapter 07",
          "ImageTag": "24d0693491b35d20b2261f85b74b1ad3",
          "MarkerType": "Chapter",
          "ChapterIndex": 6
        },
        {
          "StartPositionTicks": 37103320000,
          "Name": "Chapter 08",
          "ImageTag": "24d0693491b35d20b2261f85b74b1ad3",
          "MarkerType": "Chapter",
          "ChapterIndex": 7
        },
        {
          "StartPositionTicks": 39811440000,
          "Name": "Chapter 09",
          "ImageTag": "24d0693491b35d20b2261f85b74b1ad3",
          "MarkerType": "Chapter",
          "ChapterIndex": 8
        },
        {
          "StartPositionTicks": 43980190000,
          "Name": "Chapter 10",
          "ImageTag": "24d0693491b35d20b2261f85b74b1ad3",
          "MarkerType": "Chapter",
          "ChapterIndex": 9
        },
        {
          "StartPositionTicks": 48135590000,
          "Name": "Chapter 11",
          "ImageTag": "24d0693491b35d20b2261f85b74b1ad3",
          "MarkerType": "Chapter",
          "ChapterIndex": 10
        },
        {
          "StartPositionTicks": 51664950000,
          "Name": "Chapter 12",
          "ImageTag": "24d0693491b35d20b2261f85b74b1ad3",
          "MarkerType": "Chapter",
          "ChapterIndex": 11
        },
        {
          "StartPositionTicks": 56340870000,
          "Name": "Chapter 13",
          "ImageTag": "24d0693491b35d20b2261f85b74b1ad3",
          "MarkerType": "Chapter",
          "ChapterIndex": 12
        },
        {
          "StartPositionTicks": 61234090000,
          "Name": "Chapter 14",
          "ImageTag": "24d0693491b35d20b2261f85b74b1ad3",
          "MarkerType": "Chapter",
          "ChapterIndex": 13
        },
        {
          "StartPositionTicks": 64440210000,
          "Name": "Chapter 15",
          "ImageTag": "24d0693491b35d20b2261f85b74b1ad3",
          "MarkerType": "Chapter",
          "ChapterIndex": 14
        },
        {
          "StartPositionTicks": 67006520000,
          "Name": "Chapter 16",
          "ImageTag": "24d0693491b35d20b2261f85b74b1ad3",
          "MarkerType": "Chapter",
          "ChapterIndex": 15
        },
        {
          "StartPositionTicks": 70385730000,
          "Name": "Chapter 17",
          "ImageTag": "24d0693491b35d20b2261f85b74b1ad3",
          "MarkerType": "Chapter",
          "ChapterIndex": 16
        }
      ],
      "MediaType": "Video",
      "Width": 3840,
      "Height": 2160
    },
    "InternalDeviceId": 2504,
    "DeviceId": "13cdca18-8649-4eea-90e4-84117223be83",
    "ApplicationVersion": "11.2.0",
    "AppIconUrl": "https://raw.githubusercontent.com/MediaBrowser/plugin.video.emby/master/kodi_icon.png",
    "SupportedCommands": [
      "MoveUp",
      "MoveDown",
      "MoveLeft",
      "MoveRight",
      "Select",
      "Back",
      "ToggleContextMenu",
      "ToggleFullscreen",
      "ToggleOsdMenu",
      "GoHome",
      "PageUp",
      "NextLetter",
      "GoToSearch",
      "GoToSettings",
      "PageDown",
      "PreviousLetter",
      "TakeScreenshot",
      "VolumeUp",
      "VolumeDown",
      "ToggleMute",
      "SendString",
      "DisplayMessage",
      "SetAudioStreamIndex",
      "SetSubtitleStreamIndex",
      "SetRepeatMode",
      "SetShuffle",
      "PlaybackRate",
      "Mute",
      "Unmute",
      "SetVolume",
      "MovePlaylistItem",
      "RemoveFromPlaylist",
      "SetCurrentPlaylistItem",
      "ToggleStats",
      "PlayTrailers",
      "Pause",
      "Unpause",
      "Play",
      "Playstate",
      "PlayNext",
      "PlayMediaSource",
      "ChannelDown",
      "ChannelUp",
      "DisplayContent"
    ],
    "SupportsRemoteControl": true
  }
]

 

Path reflects the "main" item...

"Path": "/mnt/storage0/multimedia/movies/S/The Sum of All Fears (2002)/The Sum of All Fears (2002) - Bluray 4k.mkv"

DisplayTitle reflect the "subversion" I played...

"DisplayTitle": "576p HEVC"

...and that's how's suppose to be.

Thank you for explanation, so you design this on purpose. I thought the path should be playing item path, first time know "main item", thanks!

  • Like 1
quickmic
Posted

btw @Luke

What I reported (actually other users reported it to me and I confirmed it), that server's path substitution on libraries are not reflected in MediaSources paths for regular item requests.

But that's a different case and I haven't checked in latest beta.

quickmic
Posted
55 minutes ago, clost said:

Thank you for explanation, so you design this on purpose. I thought the path should be playing item path, first time know "main item", thanks!

At least, that's what I know. @Lukefeel free to correct me.

Posted
10 minutes ago, quickmic said:

btw @Luke

What I reported (actually other users reported it to me and I confirmed it), that server's path substitution on libraries are not reflected in MediaSources paths for regular item requests.

But that's a different case and I haven't checked in latest beta.

That should be resolved now.

clost
Posted
3 hours ago, Luke said:

That should be resolved now.

Now, it deosn't have display title things, but when I playing 1080p, the path is still 2160p

clost
Posted

Sorry, it has display title, my fault 

clost
Posted
4 hours ago, Luke said:

That should be resolved now.

"MediaSourceId": "mediasource_137336"
 

137336 is the real itemId, but why does the path is still wrong, why does it show the "main itemId"? It's in Nowplaying

Posted

I'll have to check but it might be resolved in the 4.9 beta channel.

clost
Posted
17 hours ago, Luke said:

I'll have to check but it might be resolved in the 4.9 beta channel.

Yeah, I am using 4.9 beta now, I find you changed MediaSourceId from asdg8235jasdff(hash format) into media source_itemId format, will you change it again?

Posted
5 hours ago, clost said:

Yeah, I am using 4.9 beta now, I find you changed MediaSourceId from asdg8235jasdff(hash format) into media source_itemId format, will you change it again?

Perhaps yes but perhaps not. Your should not try to parse that value because your code will fail if the format ever changes.

clost
Posted
On 16/03/2025 at 02:17, Luke said:

Perhaps yes but perhaps not. Your should not try to parse that value because your code will fail if the format ever changes.

To be honest, keep this format("MediaSourceId": "mediasource_137336") is really helpful for developers. And it will show up in the url, we can do a lot of things from that

Posted
16 minutes ago, clost said:

To be honest, keep this format("MediaSourceId": "mediasource_137336") is really helpful for developers. And it will show up in the url, we can do a lot of things from that

But parsing the string is equivalent to hacking. You should use the dedicated properties to get the values that you need.

clost
Posted
9 hours ago, Luke said:

But parsing the string is equivalent to hacking. You should use the dedicated properties to get the values that you need.

thank you for your explanation, so how to get media source id from api if I just know the item id

Posted
5 hours ago, clost said:

thank you for your explanation, so how to get media source id from api if I just know the item id

It's in the json in your example above...MediaSourceId

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...