Skip to content

Commit

Permalink
Add changes for cfab57c
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed May 1, 2022
1 parent 4abf03f commit 2e8021c
Show file tree
Hide file tree
Showing 178 changed files with 5,641 additions and 2,525 deletions.
2 changes: 1 addition & 1 deletion .buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 4f2f6dba2a85b82572fac0ee97557d08
config: 56a83c10789475e7cdf483bcbcbfd5cd
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file modified .doctrees/api/client.doctree
Binary file not shown.
Binary file modified .doctrees/api/custom_api.doctree
Binary file not shown.
Binary file modified .doctrees/api/decorators.doctree
Binary file not shown.
Binary file modified .doctrees/api/exceptions.doctree
Binary file not shown.
Binary file modified .doctrees/api/methods/change_stream.doctree
Binary file not shown.
Binary file modified .doctrees/api/methods/change_volume_call.doctree
Binary file not shown.
Binary file modified .doctrees/api/methods/get_active_call.doctree
Binary file not shown.
Binary file modified .doctrees/api/methods/get_call.doctree
Binary file not shown.
Binary file modified .doctrees/api/methods/get_max_voice_chat.doctree
Binary file not shown.
Binary file modified .doctrees/api/methods/get_participants.doctree
Binary file not shown.
Binary file modified .doctrees/api/methods/idle.doctree
Binary file not shown.
Binary file modified .doctrees/api/methods/index.doctree
Binary file not shown.
Binary file modified .doctrees/api/methods/join_group_call.doctree
Binary file not shown.
Binary file modified .doctrees/api/methods/leave_group_call.doctree
Binary file not shown.
Binary file modified .doctrees/api/methods/mute_stream.doctree
Binary file not shown.
Binary file modified .doctrees/api/methods/pause_stream.doctree
Binary file not shown.
Binary file modified .doctrees/api/methods/resume_stream.doctree
Binary file not shown.
Binary file modified .doctrees/api/methods/run.doctree
Binary file not shown.
Binary file modified .doctrees/api/methods/start.doctree
Binary file not shown.
Binary file modified .doctrees/api/methods/start_custom_api.doctree
Binary file not shown.
Binary file modified .doctrees/api/methods/unmute_stream.doctree
Binary file not shown.
Binary file modified .doctrees/api/stream_type.doctree
Binary file not shown.
Binary file modified .doctrees/api/types/AudioImagePiped.doctree
Binary file not shown.
Binary file modified .doctrees/api/types/AudioParameters.doctree
Binary file not shown.
Binary file modified .doctrees/api/types/AudioPiped.doctree
Binary file not shown.
Binary file modified .doctrees/api/types/AudioVideoPiped.doctree
Binary file not shown.
Binary file added .doctrees/api/types/CaptureAVDesktop.doctree
Binary file not shown.
Binary file not shown.
Binary file added .doctrees/api/types/CaptureAudioDevice.doctree
Binary file not shown.
Binary file added .doctrees/api/types/CaptureVideoDesktop.doctree
Binary file not shown.
Binary file modified .doctrees/api/types/ChangedStream.doctree
Binary file not shown.
Binary file modified .doctrees/api/types/ErrorDuringJoin.doctree
Binary file not shown.
Binary file modified .doctrees/api/types/GroupCall.doctree
Binary file not shown.
Binary file modified .doctrees/api/types/GroupCallParticipant.doctree
Binary file not shown.
Binary file modified .doctrees/api/types/HighQualityAudio.doctree
Binary file not shown.
Binary file modified .doctrees/api/types/HighQualityVideo.doctree
Binary file not shown.
Binary file modified .doctrees/api/types/InputAudioStream.doctree
Binary file not shown.
Binary file modified .doctrees/api/types/InputStream.doctree
Binary file not shown.
Binary file modified .doctrees/api/types/InputVideoStream.doctree
Binary file not shown.
Binary file modified .doctrees/api/types/JoinedGroupCallParticipant.doctree
Binary file not shown.
Binary file modified .doctrees/api/types/LeftGroupCallParticipant.doctree
Binary file not shown.
Binary file modified .doctrees/api/types/LeftVoiceChat.doctree
Binary file not shown.
Binary file modified .doctrees/api/types/LowQualityAudio.doctree
Binary file not shown.
Binary file modified .doctrees/api/types/LowQualityVideo.doctree
Binary file not shown.
Binary file modified .doctrees/api/types/MediumQualityAudio.doctree
Binary file not shown.
Binary file modified .doctrees/api/types/MediumQualityVideo.doctree
Binary file not shown.
Binary file modified .doctrees/api/types/MutedStream.doctree
Binary file not shown.
Binary file modified .doctrees/api/types/PausedStream.doctree
Binary file not shown.
Binary file modified .doctrees/api/types/ResumedStream.doctree
Binary file not shown.
Binary file modified .doctrees/api/types/StreamAudioEnded.doctree
Binary file not shown.
Binary file modified .doctrees/api/types/StreamDeleted.doctree
Binary file not shown.
Binary file modified .doctrees/api/types/StreamVideoEnded.doctree
Binary file not shown.
Binary file modified .doctrees/api/types/UnMutedStream.doctree
Binary file not shown.
Binary file modified .doctrees/api/types/Update.doctree
Binary file not shown.
Binary file modified .doctrees/api/types/UpdatedGroupCallParticipant.doctree
Binary file not shown.
Binary file modified .doctrees/api/types/VideoParameters.doctree
Binary file not shown.
Binary file modified .doctrees/api/types/VideoPiped.doctree
Binary file not shown.
Binary file modified .doctrees/api/types/index.doctree
Binary file not shown.
Binary file modified .doctrees/environment.pickle
Binary file not shown.
Binary file modified .doctrees/index.doctree
Binary file not shown.
Binary file modified .doctrees/intro/install.doctree
Binary file not shown.
Binary file modified .doctrees/intro/quickstart.doctree
Binary file not shown.
Binary file modified .doctrees/releases/index.doctree
Binary file not shown.
Binary file modified .doctrees/releases/v.0.0.9.doctree
Binary file not shown.
Binary file modified .doctrees/releases/v.0.1.0.doctree
Binary file not shown.
Binary file modified .doctrees/releases/v.0.2.0.doctree
Binary file not shown.
Binary file modified .doctrees/releases/v.0.3.0.doctree
Binary file not shown.
Binary file modified .doctrees/releases/v.0.4.0.doctree
Binary file not shown.
Binary file modified .doctrees/releases/v.0.6.0.doctree
Binary file not shown.
Binary file modified .doctrees/releases/v.0.7.0.doctree
Binary file not shown.
Binary file modified .doctrees/releases/v.0.8.0.doctree
Binary file not shown.
Binary file added .doctrees/releases/v.0.9.0.doctree
Binary file not shown.
Binary file modified .doctrees/start/examples.doctree
Binary file not shown.
Binary file modified .doctrees/start/invoking.doctree
Binary file not shown.
Binary file modified .doctrees/start/updates.doctree
Binary file not shown.
4 changes: 4 additions & 0 deletions _sources/api/types/CaptureAVDesktop.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
CaptureAVDesktop
================

.. autoclass:: pytgcalls.types.CaptureAVDesktop()
4 changes: 4 additions & 0 deletions _sources/api/types/CaptureAVDeviceDesktop.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
CaptureAVDeviceDesktop
======================

.. autoclass:: pytgcalls.types.CaptureAVDeviceDesktop()
4 changes: 4 additions & 0 deletions _sources/api/types/CaptureAudioDevice.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
CaptureAudioDevice
==================

.. autoclass:: pytgcalls.types.CaptureAudioDevice()
4 changes: 4 additions & 0 deletions _sources/api/types/CaptureVideoDesktop.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
CaptureVideoDesktop
===================

.. autoclass:: pytgcalls.types.CaptureVideoDesktop()
4 changes: 4 additions & 0 deletions _sources/api/types/index.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ Piped Input Stream Types (With FFMpeg)
.. autosummary::
:nosignatures:

CaptureAudioDevice
CaptureAVDesktop
CaptureAVDeviceDesktop
CaptureVideoDesktop
AudioImagePiped
AudioPiped
AudioVideoPiped
Expand Down
4 changes: 3 additions & 1 deletion _sources/releases/index.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ incompatible code in your application, but also to take advantage of new feature
- :doc:`PyTgCalls v0.2.0 - Added PyPi Installation<v.0.2.0>`
- :doc:`PyTgCalls v0.3.0 - Added More Feature<v.0.3.0>`
- :doc:`PyTgCalls v0.4.0 - Added More Feature and BugFix<v.0.4.0>`
- :doc:`PyTgCalls v0.6.0 - Added Support for Multi Istance and Other Improvements<v.0.6.0>`
- :doc:`PyTgCalls v0.6.0 - Added Support for Multi Instance and Other Improvements<v.0.6.0>`
- :doc:`PyTgCalls v0.7.0 - Fully Async PyTgCalls and Added More Exception<v.0.7.0>`
- :doc:`PyTgCalls v0.8.0 - Added Support For VideoCalls, More Improvements and Stability<v.0.8.0>`
- :doc:`PyTgCalls v0.9.0 - Added MediaDevices Sharing, More Improvements and Stability<v.0.9.0>`

.. toctree::
:hidden:
Expand All @@ -29,3 +30,4 @@ incompatible code in your application, but also to take advantage of new feature
v.0.6.0
v.0.7.0
v.0.8.0
v.0.9.0
10 changes: 10 additions & 0 deletions _sources/releases/v.0.9.0.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
PyTgCalls v0.9.0
================

Released on May 01, 2022


- Screen sharing (Windows Desktop & Linux Desktop)
- Microphone (Windows Desktop & Linux Desktop)
- Added UDP Support
- Improvements of the FFMpeg Additional Commands
3 changes: 3 additions & 0 deletions _sources/start/examples.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ to give you a basic idea.

`additional_ffmpeg_parameters <https://github.com/pytgcalls/pytgcalls/tree/master/example/additional_ffmpeg_parameters>`_, "Append parameters to ffmpeg"
`calls_with_module <https://github.com/pytgcalls/pytgcalls/tree/master/example/calls_with_module>`_, "Directly join on group call without waiting the start of PyTgCalls"
`capture_mic <https://github.com/pytgcalls/pytgcalls/tree/master/example/capture_mic>`_, "Capture microphone"
`custom_api <https://github.com/pytgcalls/pytgcalls/tree/master/example/custom_api>`_, "Use custom api server to bind PHP or other api to PyTgCalls"
`fifo_conversion <https://github.com/pytgcalls/pytgcalls/tree/master/example/fifo_conversion>`_, "Play a stream from fifo"
`multiple_calls <https://github.com/pytgcalls/pytgcalls/tree/master/example/multiple_calls>`_, "Use multiple pytgcalls instances with different Telegram Accounts"
Expand All @@ -26,6 +27,8 @@ to give you a basic idea.
`piped_video_calls <https://github.com/pytgcalls/pytgcalls/tree/master/example/piped_video_calls>`_, "Play audio and video using ffmpeg for live conversion (With integrated ffmpeg)"
`remote_piped_play <https://github.com/pytgcalls/pytgcalls/tree/master/example/remote_piped_play>`_, "Play a stream from remote link using ffmpeg for live conversion (With integrated ffmpeg)"
`remote_stream_with_header <https://github.com/pytgcalls/pytgcalls/tree/master/example/remote_stream_with_header>`_, "Play a stream from remote link using ffmpeg for live conversion (With integrated ffmpeg) with additional headers"
`screen_sharing <https://github.com/pytgcalls/pytgcalls/tree/master/example/screen_sharing>`_, "Screen sharing"
`screen_sharing_mic <https://github.com/pytgcalls/pytgcalls/tree/master/example/screen_sharing_mic>`_, "Screen sharing with microphone"
`simple_calls <https://github.com/pytgcalls/pytgcalls/tree/master/example/simple_calls>`_, "A simple example about using PyTgCalls"
`telethon_example <https://github.com/pytgcalls/pytgcalls/tree/master/example/telethon_example>`_, "A simple example about using PyTgCalls with Telethon"
`video_calls <https://github.com/pytgcalls/pytgcalls/tree/master/example/video_calls>`_, "Play PCM16L and RAW_VIDEO from disk"
Expand Down
3 changes: 2 additions & 1 deletion _static/basic.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* Sphinx stylesheet -- basic theme.
*
* :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
* :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/
Expand Down Expand Up @@ -757,6 +757,7 @@ span.pre {
-ms-hyphens: none;
-webkit-hyphens: none;
hyphens: none;
white-space: nowrap;
}

div[class*="highlight-"] {
Expand Down
6 changes: 3 additions & 3 deletions _static/copy-button.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 18 additions & 6 deletions _static/copybutton.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ button.copybtn {
position: absolute;
display: flex;
top: .3em;
right: .5em;
right: .3em;
width: 1.7em;
height: 1.7em;
opacity: 0;
Expand All @@ -13,17 +13,22 @@ button.copybtn {
border: none;
outline: none;
border-radius: 0.4em;
border: #e1e1e1 1px solid;
background-color: rgb(245, 245, 245);
/* The colors that GitHub uses */
border: #1b1f2426 1px solid;
background-color: #f6f8fa;
color: #57606a;
}

button.copybtn.success {
border-color: #22863a;
color: #22863a;
}

button.copybtn img {
width: 100%;
padding: .2em;
button.copybtn svg {
stroke: currentColor;
width: 1.5em;
height: 1.5em;
padding: 0.1em;
}

div.highlight {
Expand Down Expand Up @@ -79,3 +84,10 @@ div.highlight {
transition: opacity 0.2s cubic-bezier(0.64, 0.09, 0.08, 1), transform 0.2s cubic-bezier(0.64, 0.09, 0.08, 1);
transition-delay: .5s;
}

/* By default the copy button shouldn't show up when printing a page */
@media print {
button.copybtn {
display: none;
}
}
33 changes: 28 additions & 5 deletions _static/copybutton.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ const messages = {
'copy_to_clipboard': '复制到剪贴板',
'copy_success': '复制成功!',
'copy_failure': '复制失败',
},
'it' : {
'copy': 'Copiare',
'copy_to_clipboard': 'Copiato negli appunti',
'copy_success': 'Copiato!',
'copy_failure': 'Errore durante la copia',
}
}

Expand All @@ -49,7 +55,25 @@ if (doc_url_root == '#') {
doc_url_root = '';
}

const path_static = `${doc_url_root}_static/`;
/**
* SVG files for our copy buttons
*/
let iconCheck = `<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-check" width="44" height="44" viewBox="0 0 24 24" stroke-width="2" stroke="#22863a" fill="none" stroke-linecap="round" stroke-linejoin="round">
<title>${messages[locale]['copy_success']}</title>
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M5 12l5 5l10 -10" />
</svg>`

// If the user specified their own SVG use that, otherwise use the default
let iconCopy = ``;
if (!iconCopy) {
iconCopy = `<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-copy" width="44" height="44" viewBox="0 0 24 24" stroke-width="1.5" stroke="#000000" fill="none" stroke-linecap="round" stroke-linejoin="round">
<title>${messages[locale]['copy_to_clipboard']}</title>
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<rect x="8" y="8" width="12" height="12" rx="2" />
<path d="M16 8v-2a2 2 0 0 0 -2 -2h-8a2 2 0 0 0 -2 2v8a2 2 0 0 0 2 2h2" />
</svg>`
}

/**
* Set up copy/paste for code blocks
Expand Down Expand Up @@ -88,9 +112,8 @@ const temporarilyChangeTooltip = (el, oldText, newText) => {

// Changes the copy button icon for two seconds, then changes it back
const temporarilyChangeIcon = (el) => {
img = el.querySelector("img");
img.setAttribute('src', `${path_static}check-solid.svg`)
setTimeout(() => img.setAttribute('src', `${path_static}copy-button.svg`), 2000)
el.innerHTML = iconCheck;
setTimeout(() => {el.innerHTML = iconCopy}, 2000)
}

const addCopyButtonToCodeCells = () => {
Expand All @@ -109,7 +132,7 @@ const addCopyButtonToCodeCells = () => {

const clipboardButton = id =>
`<button class="copybtn o-tooltip--left" data-tooltip="${messages[locale]['copy']}" data-clipboard-target="#${id}">
<img src="${path_static}copy-button.svg" alt="${messages[locale]['copy_to_clipboard']}">
${iconCopy}
</button>`
codeCell.insertAdjacentHTML('afterend', clipboardButton(id))
})
Expand Down
77 changes: 56 additions & 21 deletions _static/doctools.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* Sphinx JavaScript utilities for all documentation.
*
* :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
* :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/
Expand Down Expand Up @@ -154,9 +154,7 @@ var Documentation = {
this.fixFirefoxAnchorBug();
this.highlightSearchWords();
this.initIndexTable();
if (DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS) {
this.initOnKeyListeners();
}
this.initOnKeyListeners();
},

/**
Expand Down Expand Up @@ -264,6 +262,16 @@ var Documentation = {
hideSearchWords : function() {
$('#searchbox .highlight-link').fadeOut(300);
$('span.highlighted').removeClass('highlighted');
var url = new URL(window.location);
url.searchParams.delete('highlight');
window.history.replaceState({}, '', url);
},

/**
* helper function to focus on search bar
*/
focusSearchBar : function() {
$('input[name=q]').first().focus();
},

/**
Expand All @@ -288,27 +296,54 @@ var Documentation = {
},

initOnKeyListeners: function() {
// only install a listener if it is really needed
if (!DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS &&
!DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS)
return;

$(document).keydown(function(event) {
var activeElementType = document.activeElement.tagName;
// don't navigate when in search box, textarea, dropdown or button
if (activeElementType !== 'TEXTAREA' && activeElementType !== 'INPUT' && activeElementType !== 'SELECT'
&& activeElementType !== 'BUTTON' && !event.altKey && !event.ctrlKey && !event.metaKey
&& !event.shiftKey) {
switch (event.keyCode) {
case 37: // left
var prevHref = $('link[rel="prev"]').prop('href');
if (prevHref) {
window.location.href = prevHref;
return false;
}
break;
case 39: // right
var nextHref = $('link[rel="next"]').prop('href');
if (nextHref) {
window.location.href = nextHref;
return false;
}
break;
&& activeElementType !== 'BUTTON') {
if (event.altKey || event.ctrlKey || event.metaKey)
return;

if (!event.shiftKey) {
switch (event.key) {
case 'ArrowLeft':
if (!DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS)
break;
var prevHref = $('link[rel="prev"]').prop('href');
if (prevHref) {
window.location.href = prevHref;
return false;
}
break;
case 'ArrowRight':
if (!DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS)
break;
var nextHref = $('link[rel="next"]').prop('href');
if (nextHref) {
window.location.href = nextHref;
return false;
}
break;
case 'Escape':
if (!DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS)
break;
Documentation.hideSearchWords();
return false;
}
}

// some keyboard layouts may need Shift to get /
switch (event.key) {
case '/':
if (!DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS)
break;
Documentation.focusSearchBar();
return false;
}
}
});
Expand Down
6 changes: 4 additions & 2 deletions _static/documentation_options.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
var DOCUMENTATION_OPTIONS = {
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
VERSION: '0.8.3',
VERSION: '0.9.0',
LANGUAGE: 'None',
COLLAPSE_INDEX: false,
BUILDER: 'html',
FILE_SUFFIX: '.html',
LINK_SUFFIX: '.html',
HAS_SOURCE: true,
SOURCELINK_SUFFIX: '.txt',
NAVIGATION_WITH_KEYS: false
NAVIGATION_WITH_KEYS: false,
SHOW_SEARCH_SUMMARY: true,
ENABLE_SEARCH_SHORTCUTS: true,
};
2 changes: 1 addition & 1 deletion _static/language_data.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* This script contains the language-specific data used by searchtools.js,
* namely the list of stopwords, stemmer, scorer and splitter.
*
* :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
* :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/
Expand Down
Loading

0 comments on commit 2e8021c

Please sign in to comment.