স্ক্রিন মিরর
সমর্থনের জন্য app.capabilities এবং অনুমতির জন্য app.access ও হোস্টের অনুমতি দেখুন। ব্যবহারের আগে নমুনা মান বদলান।
টাইপ ডেফিনিশন
type Subscription {
screenMirrorState: MirrorState!
screenMirrorVideoCodec: MirrorCodecConfiguration
screenMirrorAudioGranted: Boolean!
}
type Mutation {
openAccessibilitySettings: Boolean!
requestScreenMirrorAudio: Boolean!
requestScreenMirrorKeyFrame: Boolean!
startScreenMirror(audio: Boolean!): Boolean!
stopScreenMirror: Boolean!
updateScreenMirrorQuality(mode: ScreenMirrorMode!): Boolean!
}
type Query {
isScreenMirroring: Boolean!
screenMirrorControlEnabled: Boolean!
screenMirrorQuality: ScreenMirrorQuality!
screenMirrorVideoCodec: ScreenMirrorVideoCodec
}
type MirrorCodecConfiguration {
annexB: String!
}
type MirrorState {
running: Boolean!
}
enum ScreenMirrorMode {
HD
SMOOTH
}
type ScreenMirrorQuality {
mode: ScreenMirrorMode!
resolution: Int!
}
type ScreenMirrorVideoCodec {
annexB: String!
keyFrame: String
}অপারেশন
screenMirrorState
বর্তমান স্ক্রিন মিরর অবস্থা পড়ে।
subscription screenMirrorState {
screenMirrorState { running }
}screenMirrorVideoCodec
স্ক্রিন মিররিং সেশনের ভিডিও কোডেক কনফিগারেশনের আপডেট গ্রহণ করুন।
subscription screenMirrorVideoCodec {
screenMirrorVideoCodec { annexB }
}screenMirrorAudioGranted
স্ক্রিন মিররের অডিওর অনুমতি পাওয়ার বিজ্ঞপ্তি পায়।
subscription screenMirrorAudioGranted {
screenMirrorAudioGranted
}openAccessibilitySettings
ডিভাইসে Android অ্যাক্সেসিবিলিটি সেটিংস খোলে। sendScreenMirrorControl অঙ্গভঙ্গি পাঠানোর আগে এটি দরকার।
mutation openAccessibilitySettings {
openAccessibilitySettings
}requestScreenMirrorAudio
স্ক্রিন মিররের অডিওর জন্য মাইক্রোফোনের অনুমতি চায়। আগেই অনুমোদিত হলে true, অন্যথায় false দেয় (ও অনুমতির ডায়ালগ খোলে)।
# Returns false when the device has not granted RECORD_AUDIO yet; the
# platform asks for it and the caller retries.
mutation requestScreenMirrorAudio {
requestScreenMirrorAudio
}requestScreenMirrorKeyFrame
সক্রিয় স্ক্রিন মিরর ভিডিও এনকোডারের কাছে নতুন কী ফ্রেম চায়।
mutation requestScreenMirrorKeyFrame {
requestScreenMirrorKeyFrame
}startScreenMirror
স্ক্রিন মিরর সেশন শুরু করে। ডিভাইসের অডিওও পাঠাতে audio=true দিন (RECORD_AUDIO অনুমতি লাগে)।
mutation startScreenMirror($audio: Boolean!) {
startScreenMirror(audio: $audio)
}stopScreenMirror
সক্রিয় স্ক্রিন মিরর সেশন বন্ধ করে।
mutation stopScreenMirror {
stopScreenMirror
}updateScreenMirrorQuality
স্ক্রিন মিররের মানের প্রিসেট ঠিক করে।
mutation updateScreenMirrorQuality($mode: ScreenMirrorMode!) {
updateScreenMirrorQuality(mode: $mode)
}isScreenMirroring
স্ক্রিন মিরর সেশন সক্রিয় কি না যাচাই করে।
query isScreenMirroring {
isScreenMirroring
}screenMirrorControlEnabled
PlainApp অ্যাক্সেসিবিলিটি সার্ভিস চালু ও অঙ্গভঙ্গি পাঠাতে সক্ষম হলে true দেয়।
query screenMirrorControlEnabled {
screenMirrorControlEnabled
}screenMirrorQuality
বর্তমান মিরর মানের প্রিসেট আনে।
query screenMirrorQuality {
screenMirrorQuality { mode resolution }
}screenMirrorVideoCodec
বর্তমান/সর্বশেষ মিরর সেশনের ভিডিও কোডেক আনে।
# Null while the pipeline has not published its codec configuration.
query screenMirrorVideoCodec {
screenMirrorVideoCodec { annexB keyFrame }
}