# Targeting a specific bus with ScriptUsageVideoPlayback not working

**URL:** https://qa.fmod.com/t/targeting-a-specific-bus-with-scriptusagevideoplayback-not-working/24269
**Category:** Unity
**Created:** [May 18, 2026, 11:10pm UTC](https://qa.fmod.com/t/targeting-a-specific-bus-with-scriptusagevideoplayback-not-working/24269 "2026-05-18T23:10:17Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![cj2heads](https://avatars.discourse-cdn.com/v4/letter/c/ecb155/32.png) [@cj2heads](https://qa.fmod.com/u/cj2heads)
#### Post date: [May 18, 2026, 11:10pm UTC](https://qa.fmod.com/t/targeting-a-specific-bus-with-scriptusagevideoplayback-not-working/24269/1 "2026-05-18T23:10:17Z")

</div>

I’ve taken the [ScriptUsageVideoPlayback](https://www.fmod.com/docs/2.03/unity/examples-video-playback.html) and modified it slightly to target a specific bus instead of the master channel group. Below is what I’m currently doing:

```csharp
if (!mChannel.hasHandle() && mTotalSamplesWritten > mAdjustedLatencySamples)
{
    Bus bus = FMODUnity.RuntimeManager.GetBus(fmodBusPath);
    
    AudioManager.CheckResult(bus.lockChannelGroup());
    AudioManager.CheckResult(RuntimeManager.StudioSystem.flushCommands());
    AudioManager.CheckResult(bus.getChannelGroup(out FMOD.ChannelGroup group));
    AudioManager.CheckResult(RuntimeManager.CoreSystem.playSound(mSound, group, false, out mChannel));
    AudioManager.CheckResult(mChannel.setVolume(_volume));
    AudioManager.CheckResult(bus.unlockChannelGroup());
}

```

The audio still plays, just like it did with the master channel group but it does not appear to target the bus. When profiling the bus does not show any audio coming through and no amount of volume manipulation has an impact.

I’m not entirely sure what I’m doing wrong above or what else I can dig into to try to figure out why it doesn’t appear to work.

The bus and group above do return as valid, I just removed the checks for clarity.

---

<div class="post-metadata">

### Author: ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)
#### Post date: [May 19, 2026, 4:48am UTC](https://qa.fmod.com/t/targeting-a-specific-bus-with-scriptusagevideoplayback-not-working/24269/2 "2026-05-19T04:48:00Z")

</div>

Hi,

Thanks for the code and the info, could I please grab your FMOD versions?

Using your code with `2.03.13` I was able to pass the audio to my `VideoBus`

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/8/81de7b772bd5d01ccc6b6e0de731550ac2899fda.png)

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/0/053cf787dfedd58e56fd4cf807384ef7ec77def4.png)

I did notice that it wasn’t being recorded in the profiler however.

If you connect LU ([FMOD Studio | Profiling](https://fmod.com/docs/2.03/studio/profiling.html)) are you able to see the audio coming through your `fmodBusPath`?

---

<div class="post-metadata">

### Author: ![cj2heads](https://avatars.discourse-cdn.com/v4/letter/c/ecb155/32.png) [@cj2heads](https://qa.fmod.com/u/cj2heads)
#### Post date: [May 19, 2026, 7:01pm UTC](https://qa.fmod.com/t/targeting-a-specific-bus-with-scriptusagevideoplayback-not-working/24269/3 "2026-05-19T19:01:00Z")

</div>

This particular project is on 2.02.21. Upgrading is a little tricky of a proposition (release is close) so I’m a little hopeful that’s not the solution.

I’ve created an isolated scene with just a video player so there’s no other noise and yea Live Update does not show any audio.

The bus I’m targeting _does_ matter. In that if I give an invalid bus path I get the bus not found exception. However it doesn’t matter which bus I target. Same result of not seeing the Live Update and not able to control the volume of the video player with a VCA.

---

<div class="post-metadata">

### Author: ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)
#### Post date: [May 21, 2026, 1:28am UTC](https://qa.fmod.com/t/targeting-a-specific-bus-with-scriptusagevideoplayback-not-working/24269/4 "2026-05-21T01:28:08Z")

</div>

Thank you for the info, I was able to reproduce the issue.

Could you try removing the `bus.unlockChannelGroup()` call, and cache the `bus` to be unlocked at the end of the video or scene. I think it is being stopped as part of our virtualization system.

---

<div class="post-metadata">

### Author: ![cj2heads](https://avatars.discourse-cdn.com/v4/letter/c/ecb155/32.png) [@cj2heads](https://qa.fmod.com/u/cj2heads)
#### Post date: [June 3, 2026, 8:53pm UTC](https://qa.fmod.com/t/targeting-a-specific-bus-with-scriptusagevideoplayback-not-working/24269/5 "2026-06-03T20:53:03Z")

</div>

Looks like doing that fixed this! Thanks a lot
