MCPcopy Create free account
hub / github.com/GrapheneCt/NetStream / GetActiveRepresentationsInfo

Method GetActiveRepresentationsInfo

NetStream/source/players/player_av.cpp:988–1003  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

986}
987
988void AVPlayer::GetActiveRepresentationsInfo(StreamInfo::RepresentationInfo *info)
989{
990 if (!info)
991 {
992 return;
993 }
994
995 uint32_t vidBitrate = 0;
996 sceAvPlayerGetStreamSetBitrate(m_playerCore, m_currentVideoStreamId, &vidBitrate);
997 sceAvPlayerGetStreamSetBitrate(m_playerCore, m_currentAudioStreamId, &info->bitrate);
998 info->bitrate += vidBitrate;
999 info->width = m_lastVideoDetails.width;
1000 info->height = m_lastVideoDetails.height;
1001 info->srate = m_lastAudioDetails.sampleRate;
1002 info->ch = m_lastAudioDetails.channelCount;
1003}
1004
1005void AVPlayer::SwitchPlaybackState()
1006{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected