spaceman07 8 Posted May 16, 2020 Share Posted May 16, 2020 (edited) I am trying to work out what part of the API would capture the information i would need in order to stop playback if a user/client is transcoding the video stream part and if so i would like to stop it and send them a message with a reason on the screen. My 4k content are in a folder path with 4K in the name so I am hoping to capture that possibly from the path part of the capture. I have been looking around the SessionsService part of the API and would like to check if this is the part that i need to look into - "TranscodingInfo": { "AudioChannels": 6, "AudioCodec": "ac3", "Bitrate": 18827060, "CompletionPercentage": 7.304118161106082, "Container": "ts", "Framerate": 36, "Height": 2160, "IsAudioDirect": true, "IsVideoDirect": false, "TranscodeReasons": [ "ContainerBitrateExceedsLimit" ], "TranscodingPositionTicks": 2246700000, "TranscodingStartPositionTicks": 0, "VideoCodec": "h264", "VideoDecoder": "Automatic software decoder", "VideoDecoderIsHardware": false, "VideoDecoderMediaType": "HEVC", "VideoEncoder": "libx264 Software Encoder", "VideoEncoderIsHardware": false, "VideoEncoderMediaType": "H.264 (AVC)", "Width": 3840 } IsVideoDirect = false/true If I could get clarification on that please if I am looking at the correct place for that information? Thanks Edited May 16, 2020 by spaceman07 Link to comment Share on other sites More sharing options...
PenkethBoy 2063 Posted May 16, 2020 Share Posted May 16, 2020 you already have height and width info - is that not enough to tell if its 4k or not? 1 Link to comment Share on other sites More sharing options...
spaceman07 8 Posted May 16, 2020 Author Share Posted May 16, 2020 Is it possible to have a stream where it is direct playing the 4k video and transcoding the audio? If so I am ok with that but only interested in stopping the stream if it's transcoding the video part. Link to comment Share on other sites More sharing options...
PenkethBoy 2063 Posted May 16, 2020 Share Posted May 16, 2020 Yes isaudiodirect looks like what you need to check along with isvideodirect you would have to test this but they look like they tell you what you need Link to comment Share on other sites More sharing options...
PenkethBoy 2063 Posted May 16, 2020 Share Posted May 16, 2020 another way would be parental controls to limit certain users to not be able to "see" 4k videos Link to comment Share on other sites More sharing options...
spaceman07 8 Posted May 16, 2020 Author Share Posted May 16, 2020 I would like them to be able to be able to use 4k but only direct play. So be able to direct play or transcoding for 720/1080p content and direct play only for 4k Link to comment Share on other sites More sharing options...
PenkethBoy 2063 Posted May 17, 2020 Share Posted May 17, 2020 ok if parental controls dont work for you then you have enough info to control their access via the info you have in the first post Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now