打开高清电视。 相应地更改电视输入。 解锁Samsung Galaxy设备。 用两根手指从屏幕顶部向下滑动。 点击编辑。 选择屏幕镜像。 选择镜像设备的名称。 选择使用PIN连接。 输入电视上显示的PIN。

Given the above summary, write a detailed text in English for it.
In order to mirror your Samsung Galaxy's screen, you'll need either a Samsung smart TV or a Samsung All-Share Cast hub. Depending on the type of TV you have, your process here will vary:  For a smart TV, select the "Screen Mirroring" option using your remote's Source button. For an All-Share hub, change your TV's input to whichever one is using the All-Share HDMI cable (for example, Video 6). If you have a passcode enabled, you'll need to enter it in order to do this.  This is in the top right corner of your screen. This may also be a pencil icon on some phones. You may have to swipe left or right to view this option. On some phones, this option may be called Smart View. For example, you might tap your TV's name here. If you're connecting to a Samsung smart TV with no All-Share hub, your S6 will connect automatically without entering a PIN. As long as the PINs match, your Samsung Galaxy S6's screen should now be mirrored on your TV.